# DNS Lookup API (x402)

> DNS Lookup API (x402) is a paid API for AI agents from api-production-17e1.up.railway.app, paid per call via x402, $0.001/call, status down (last checked 2026-08-24).

Resolves DNS records for a given hostname and optional record type, returning structured JSON results via pay-per-call USDC payment.

## Facts

- Endpoint: POST https://api-production-17e1.up.railway.app/dns
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-08-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-lookup-api-x402-9b05b257
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j7GcRMsG9QlbWUysNljYR

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-lookup-api-x402-9b05b257 -d '<json body>'
```

Example prompt: Can you look up the MX and TXT records for example.com so I can check its mail deliverability and verify its SPF configuration?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically resolve DNS records for a domain without requiring an API key or signup — ideal for one-off domain research, email deliverability checks (MX), SPF/DKIM/DMARC verification (TXT), or confirming where a hostname points (A/CNAME). Prefer this over manual DNS tools when operating in an automated pipeline that supports x402 micropayments.

## Known failure modes

- Invalid or non-existent hostname returns an error or empty record set
- Unsupported record type parameter returns an error
- DNS resolution timeout if the authoritative server is slow or unreachable
- Payment failure (x402) if USDC balance is insufficient or payment not provided
- Malformed hostname input returns a validation error

## How this service works

DNS lookup for AI agents — give a hostname (+ optional record type A/AAAA/MX/TXT/NS/CNAME/SOA) → its DNS records as JSON, resolved via public resolvers. Pay-per-call in USDC via x402 — no signup, no API key. Use for domain research, mail-deliverability (MX), SPF/DKIM/DMARC (TXT), and verifying where a name points.

## Output

A JSON object containing the resolved DNS records for the requested hostname, including record type, TTL, and record values (e.g. IP addresses, mail server hostnames, TXT strings, nameservers, etc.).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-lookup-api-x402-9b05b257/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-production-17e1.up.railway.app](https://www.zero.xyz/host/api-production-17e1.up.railway.app/llms.txt)
