# AgentTools DNS Lookup via Cloudflare DoH

> AgentTools DNS Lookup via Cloudflare DoH is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Query live DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) for any domain using Cloudflare's DNS-over-HTTPS resolver

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/live/dns-lookup?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-dns-lookup-via-cloudflare-doh-8fa5fad5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DZ1k6XeOwV9shW1GA-dah

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 agenttools-dns-lookup-via-cloudflare-doh-8fa5fad5
```

Example prompt: Can you look up the MX records for gmail.com using Cloudflare's DNS resolver so I can check its mail server configuration?

## When to prefer this

Use this endpoint when an agent needs real-time, authoritative DNS record resolution backed by Cloudflare's globally distributed DoH infrastructure, especially for email deliverability checks (MX), domain ownership verification (TXT), IP resolution (A/AAAA), or infrastructure discovery (NS, CNAME, SOA). Prefer this over cached or system-resolver lookups when freshness and reliability matter.

## Known failure modes

- Domain does not exist — NXDOMAIN response returned
- Requested record type not found for domain — empty answer section
- Invalid domain format supplied — query rejected
- DNS resolution timeout from Cloudflare upstream
- Unsupported record type requested (only A, AAAA, MX, TXT, NS, CNAME, SOA accepted)
- Payment not attached or insufficient USDC — 402 response

## How this service works

Query live DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) through Cloudflare's DNS-over-HTTPS resolver. Domain validation, email deliverability pre-checks and infrastructure discovery. Use this when an agent needs to real DNS records via Cloudflare DNS-over-HTTPS.

## Output

Returns the live DNS response for the requested record type, including the DNS answer records with their values (e.g. IP addresses for A records, hostnames for MX/CNAME/NS, strings for TXT, serial/refresh info for SOA), sourced directly from Cloudflare's 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": [
      "domain"
     ],
     "properties": {
      "type": {
       "enum": [
        "A",
        "AAAA",
        "MX",
        "TXT",
        "NS",
        "CNAME",
        "SOA"
       ],
       "type": "string",
       "description": "Record type"
      },
      "domain": {
       "type": "string",
       "description": "Domain"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-dns-lookup-via-cloudflare-doh-8fa5fad5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
