# DNS Records Lookup API

> DNS Records Lookup API is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status down (last checked 2026-09-15).

Returns full DNS record set for a domain including A, AAAA, MX, TXT, NS, and SPF records via a simple query parameter.

## Facts

- Endpoint: POST https://api.x-402.online/v1/dns
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-records-lookup-api-7b42b079
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cs8GgzdaGibMbo078peBA

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 dns-records-lookup-api-7b42b079 -d '<json body>'
```

Example prompt: Can you pull up all the DNS records for github.com — I need the A, MX, TXT, NS, and SPF records all at once?

## When to prefer this

Choose this endpoint when you need a comprehensive, single-call DNS record dump for a domain covering all major record types (A, AAAA, MX, TXT, NS, SPF) and want to avoid making multiple separate DNS queries. Particularly useful for domain audits, email infrastructure verification, and security investigations.

## Known failure modes

- Domain does not exist or is not resolvable — returns empty or error response
- Invalid domain format supplied — may return validation error
- DNS propagation lag means records may be stale or incomplete
- Rate limiting or payment failure (x-402) if USDC not provided

## Output

A structured response containing the full DNS record set for the queried domain, including A (IPv4 addresses), AAAA (IPv6 addresses), MX (mail exchange servers), TXT (text/verification records), NS (nameservers), and SPF (sender policy framework) records.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-records-lookup-api-7b42b079/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
