# the402.ai DNS Lookup

> the402.ai DNS Lookup is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Performs a DNS lookup for a given domain and returns DNS records, paid per-call via x402 micropayment.

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_e792d80431954f7b/purchase
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-8d3fedf8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8O2kj_BrOy_eo6McTuk0G

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 api-the402-ai-8d3fedf8 -d '<json body>'
```

Example prompt: Look up the DNS records for github.com — I want to see the A, MX, and TXT records.

## When to prefer this

Use this endpoint when an agent needs programmatic DNS resolution as part of a workflow, domain validation, network diagnostics, or email configuration checks, and is operating in an x402-enabled micropayment environment on the the402.ai platform.

## Known failure modes

- Domain does not exist (NXDOMAIN) — returns error indicating non-existent domain
- Invalid domain format — returns validation error
- DNS resolution timeout — returns timeout error
- Unsupported record type — returns unsupported type error
- Payment failure — x402 payment not accepted, returns 402 status

## How this service works

Purchase: DNS Lookup

## Output

Returns DNS records for the queried domain, including record types (A, AAAA, MX, CNAME, TXT, NS, etc.), values, and TTL information.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-8d3fedf8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
