# 24K Labs DNS Lookup

> 24K Labs DNS Lookup is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Resolves a DNS query for a given hostname and returns the DNS answer records.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/dns-lookup
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-dns-lookup-47a8e150
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bn73XT-4-_tmlvWZC8vHp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-dns-lookup-47a8e150 -d '<json body>'
```

Example prompt: Can you look up the DNS records for api.example.com and tell me what IP addresses it resolves to?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call DNS resolution without standing up your own DNS resolver infrastructure, or when operating in an x402-enabled micropayment workflow and need DNS lookup as part of an automated agent pipeline.

## Known failure modes

- Non-existent domain returns empty answers array
- Invalid hostname format may return an error
- DNS query timeout for slow or unreachable nameservers
- NXDOMAIN responses for unregistered domains

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

A JSON object containing an 'answers' array with DNS resource records for the queried hostname, such as A records with IP addresses, TTLs, and record types.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string"
  },
  "type": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "answers": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-dns-lookup-47a8e150/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
