# x402 Web Tools – DNS Lookup

> x402 Web Tools – DNS Lookup is a paid API for AI agents from web.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Resolves DNS records (A, AAAA, CNAME, MX, TXT, NS, CAA, SOA) for a domain using Cloudflare and Google public resolvers, and reports whether the domain exists.

## Facts

- Endpoint: GET https://web.kagurazaka.dev/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-7c6d4eef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PQ7pDNv7zDYVqXK2nTlwA

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

Example prompt: What are all the DNS records for stripe.com? I want to see A, MX, and TXT records in particular.

## When to prefer this

Choose this endpoint when you need authoritative, real-time DNS record data from both Cloudflare and Google public resolvers simultaneously. It's ideal for infrastructure verification, email configuration auditing, domain existence checks, and security research. Prefer it over WHOIS tools when you need resolved DNS values rather than registration metadata, and over manual dig/nslookup when you need structured JSON output in an agent workflow.

## Known failure modes

- Domain does not exist — returns exists: false with empty records
- Invalid domain name format — likely returns an error or empty response
- Requested record type not found — that key is absent from the records object
- Transient DNS resolver failure (Cloudflare/Google outage) — may return partial or empty results
- Rate limiting or payment failure — 402 response if payment is not attached

## 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 'exists' field indicating whether the domain has DNS records, and a 'records' object whose keys are DNS record types (A, AAAA, CNAME, MX, TXT, NS, CAA, SOA) with their resolved values. MX records include exchange hostname and priority. Only requested record types are included if specific types are requested.

## 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-7c6d4eef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web.kagurazaka.dev](https://www.zero.xyz/host/web.kagurazaka.dev/llms.txt)
