# Agent Toolbox DNS Lookup

> Agent Toolbox DNS Lookup is a paid API for AI agents from agent-toolbox.zafermemon87.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Queries DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV, PTR) for a domain via DNS-over-HTTPS (Cloudflare 1.1.1.1) with DNSSEC validation status.

## Facts

- Endpoint: GET https://agent-toolbox.zafermemon87.workers.dev/v1/dns?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-toolbox-dns-lookup-b322e058
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U8EQYs6OR68VOQMGe1y0c

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 agent-toolbox-dns-lookup-b322e058
```

Example prompt: What are the MX records for gmail.com? I want to see which mail servers handle their email, and also check if DNSSEC is valid for the domain.

## When to prefer this

Use this endpoint when you need authoritative DNS record data for any domain, especially when DNSSEC validation status is important. Prefer it over generic WHOIS/RDAP for operational DNS data (routing, mail, security records). It supports all major record types (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV, PTR) and uses Cloudflare's privacy-respecting DNS-over-HTTPS infrastructure.

## Known failure modes

- Domain does not exist (NXDOMAIN) — returns empty or error response
- Requested record type not present for domain — returns empty answer section
- DNSSEC validation failure — may indicate misconfiguration or tampering
- Network timeout reaching Cloudflare DoH resolver
- Invalid domain name format in query parameter

## How this service works

DNS records of a domain (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV, PTR) over DNS-over-HTTPS (1.1.1.1), with DNSSEC validation status.

## Output

Returns DNS resource records of the requested type for the domain, including record values, TTLs, and DNSSEC validation status, sourced from Cloudflare's 1.1.1.1 DNS-over-HTTPS resolver.

## 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"
      },
      "type": {
       "enum": [
        "A",
        "NS",
        "CNAME",
        "SOA",
        "PTR",
        "MX",
        "TXT",
        "AAAA",
        "SRV",
        "CAA"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "MX",
  "plain": "1 MX record(s) for example.com.",
  "status": "NOERROR",
  "records": [
   {
    "ttl": 300,
    "data": "0 .",
    "name": "example.com",
    "type": "MX"
   }
  ],
  "dnssec_validated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-toolbox-dns-lookup-b322e058/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-toolbox.zafermemon87.workers.dev](https://www.zero.xyz/host/agent-toolbox.zafermemon87.workers.dev/llms.txt)
