# 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-15).

Resolves A, AAAA, MX, TXT, NS, and CNAME DNS records for a domain using DNS-over-HTTPS via Google.

## Facts

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

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-0f255a7f -d '<json body>'
```

Example prompt: Can you look up the MX records for example.com so I can see which mail servers handle its email?

## When to prefer this

Use this endpoint when you need programmatic, structured DNS record resolution without running your own DNS resolver or managing DoH infrastructure. It is well-suited for agents that need to verify email configuration (MX/TXT/SPF), check domain-to-IP mappings, audit nameserver delegations, or validate DNS propagation. Prefer this over generic HTTP-based domain lookup tools when you specifically need DNS record data for multiple record types.

## Known failure modes

- Domain does not exist (NXDOMAIN) — returns error or empty record set
- Unsupported record type requested — may return an error or empty result
- DNS resolution timeout — upstream Google DoH unreachable
- Invalid domain name format — returns validation error
- Record type has no entries for the domain — returns empty result

## How this service works

Resolve A/AAAA/MX/TXT/NS/CNAME records for a domain over DNS-over-HTTPS (Google).

## Output

Returns the resolved DNS records for the queried domain and record type, including values such as IP addresses (A/AAAA), mail server hostnames and priorities (MX), canonical names (CNAME), name server hostnames (NS), and raw text values (TXT), sourced via Google DNS-over-HTTPS.

## 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-0f255a7f/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)
