# DNS Lookup & Record Resolver API

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

Resolves any domain name to its DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) for diagnostics, security audits, and infrastructure discovery

## Facts

- Endpoint: GET https://api.x402node.dev/url/dns-lookup
- Price: $0.0022/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-7e00479a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rdLdGxaVY5Zte0jELsOQJ

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-7e00479a
```

Example prompt: Look up the MX records for github.com so I can verify their email infrastructure is set up correctly.

## When to prefer this

Use this endpoint when you need programmatic DNS resolution for any record type (A, AAAA, MX, TXT, NS, CNAME, SOA) without running your own DNS infrastructure. Ideal for AI agents performing email security validation (SPF/DMARC/MX checks), network diagnostics, CDN routing detection, nameserver discovery, or security audits. Prefer this over general web search when you need authoritative, structured DNS data rather than human-readable descriptions.

## Known failure modes

- Domain does not exist (NXDOMAIN) — records array may be empty with count 0
- Unsupported record type requested — may return error or empty result
- Network timeout reaching upstream DNS resolver — transient failure
- Invalid domain format provided — validation error
- DNSSEC validation failure for signed zones
- Rate limiting or payment failure via x402 protocol

## How this service works

dns lookup, DNS lookup API, DNS lookup online, lookup DNS records, DNS resolver lookup, nslookup API, DNS query lookup, dig replacement, DoH lookup, A AAAA MX TXT NS CNAME lookup, SPF DMARC DKIM lookup, nameserver lookup, CDN routing detector, DNS DNSSEC inspector. Resolve any domain to A, AAAA, MX, TXT, NS, CNAME, or SOA records. For AI agents, security audits, email config validation, network diagnostics. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with the queried domain, the requested record type, an array of matching DNS record strings, a count of records returned, and a timestamp of when the lookup was performed.

## Example request

```json
{
 "domain": "github.com",
 "recordType": "MX"
}
```

## 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",
     "required": [
      "domain"
     ],
     "properties": {
      "type": {
       "type": "string",
       "description": "Type (optional)"
      },
      "domain": {
       "type": "string",
       "description": "Domain name (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-7e00479a/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)
