# x402 Web Tools – DNS Lookup

> x402 Web Tools – DNS Lookup is a paid API for AI agents from q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Retrieves A, AAAA, CNAME, MX, TXT, NS, CAA, and SOA DNS records for a domain from Cloudflare and Google public resolvers, with domain existence check.

## Facts

- Endpoint: GET https://q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/v1/dns?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-tools-dns-lookup-f3879d13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HnkXNe_maORyk3KrDc1zc

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 x402-web-tools-dns-lookup-f3879d13
```

Example prompt: Can you pull all the DNS records for github.com — I want to see its A, MX, TXT, and NS records?

## When to prefer this

Choose this endpoint when you need authoritative, real-time DNS record data from both Cloudflare and Google resolvers for any domain. It's ideal for verifying email configuration (SPF, DKIM, MX), debugging DNS propagation, auditing domain infrastructure, or confirming domain existence. Prefer it over manual DNS tools when automating DNS checks in an agent workflow, especially when you need multiple record types in a single call. It pays per-call via x402 microtransactions, so it suits low-volume, on-demand lookups rather than bulk domain scanning.

## Known failure modes

- Domain does not exist — exists field returns false and records may be empty
- Invalid domain name format — likely returns an error or empty result
- Requested record type not found — that type is simply omitted from the records object
- DNS resolver timeout or upstream failure — may return a partial result or error
- Comma-separated types string is malformed — may return all types or an error

## How this service works

A, AAAA, CNAME, MX, TXT, NS, CAA and SOA records of a domain from public resolvers (Cloudflare and Google), or just the types you ask for, and whether the domain exists.

## Output

A JSON object containing the domain name, a boolean indicating whether the domain exists in DNS, and a records object keyed by record type (e.g. A, MX, TXT) with the corresponding values — IP addresses for A/AAAA, objects with exchange and priority for MX, strings for TXT, etc. Only record types that have results are included.

## 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": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "domain name, such as example.com"
      },
      "types": {
       "type": "string",
       "description": "comma separated record types (default all of A, AAAA, CNAME, MX, TXT, NS, CAA, SOA)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "name": {},
      "exists": {},
      "records": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "x402.org",
  "exists": true,
  "records": {
   "A": [
    "104.21.0.1"
   ],
   "MX": [
    {
     "exchange": "mx.example",
     "priority": 10
    }
   ],
   "TXT": [
    "v=spf1 -all"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-tools-dns-lookup-f3879d13/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/llms.txt)
