# Domain DNS Lookup API

> Domain DNS Lookup API is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Performs DNS lookups for a given domain, returning DNS record answers (A, AAAA, MX, TXT, etc.) by querying specified record types.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/domain/dns
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domain-dns-lookup-api-62fbe1c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gMRepEAuJv876C2ONtMIs

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 domain-dns-lookup-api-62fbe1c2 -d '<json body>'
```

Example prompt: Can you look up the A and MX DNS records for example.com?

## When to prefer this

Choose this endpoint when an AI coding agent or automated workflow needs programmatic DNS lookups as part of infrastructure checks, domain validation, or network debugging — especially when operating within an x402 micropayment context and needing deterministic, structured JSON DNS responses without setting up a full DNS resolver library.

## Known failure modes

- Invalid or non-existent domain returns empty answers or error
- Unsupported DNS record types may return empty arrays
- Payment failure (402) if x402 micropayment is not included or insufficient
- Network timeout if DNS resolution takes too long
- Malformed input (missing domain field) returns validation error

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

Returns a JSON object with DNS answers keyed by record type (e.g. A, MX, TXT) for the queried domain, along with metadata indicating the DNS engine used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "types": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 5
  },
  "domain": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "answers": {
    "A": []
   }
  },
  "meta": {
   "engine": "dns"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domain-dns-lookup-api-62fbe1c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
