# DNS Records Lookup API (x402node)

> DNS Records Lookup API (x402node) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Retrieves all DNS records for a domain (A, AAAA, MX, NS, TXT, SOA, CAA) for audit and email infrastructure verification.

## Facts

- Endpoint: GET https://api.x402node.dev/domain/dns
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-424c0d33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Za_un4HuLcNLMiO5h3Mn-

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-x402node-dev-424c0d33
```

Example prompt: Can you pull all the DNS records for stripe.com — I want to see the MX, TXT, NS, A, and CAA records to audit their email and certificate infrastructure?

## When to prefer this

Use this endpoint when you need a comprehensive, multi-record-type DNS audit for a single domain in one call, especially for email infrastructure verification (MX, TXT/SPF/DKIM) or security auditing (CAA, TXT). Prefer over manual dig commands or piecemeal DNS tools when an AI agent needs structured DNS data programmatically.

## Known failure modes

- Invalid or non-existent domain returns an error or empty record set
- Network timeout if DNS resolution takes too long
- Malformed domain parameter returns a 400 bad request
- Private or reserved domains may return incomplete results
- Rate limiting or payment failure returns a 402 or 429 error

## How this service works

DNS records for a domain: A, AAAA, MX, NS, TXT, SOA, CAA. Use ?domain=example.com. Built for DNS audit and email infrastructure verification. Accepts payment on Base or Solana — either network works.

## Output

Returns a complete set of DNS records for the queried domain, including A (IPv4), AAAA (IPv6), MX (mail exchange), NS (nameservers), TXT (SPF, DKIM, DMARC etc.), SOA (start of authority), and CAA (certificate authority authorization) records.

## Example request

```json
{
 "domain": "stripe.com"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain name (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-424c0d33/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
