# AllTheBot DNS Lookup

> AllTheBot DNS Lookup is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Performs a DNS lookup for a given domain name, returning DNS records (A, MX, etc.), existence status, TTL, and DNSSEC validation info via Cloudflare DoH.

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/domain/dns?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-dns-lookup-c8e75739
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x4KQ-rQ8tb4q1X9pii8Gq

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 allthebot-dns-lookup-c8e75739
```

Example prompt: Can you look up the DNS records for github.com — I want to see the A records and MX records, including their TTL values?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call DNS resolution without managing API keys or accounts. It is ideal for lightweight agent workflows that need to verify domain existence, resolve IPs, or inspect mail server configuration on demand. It uses Cloudflare's reliable DoH infrastructure, making it more trustworthy than ad-hoc DNS lookups. Prefer it over raw DNS libraries when operating in a sandboxed agent environment that cannot make arbitrary UDP calls.

## Known failure modes

- Domain does not exist in DNS — returns exists: false with empty records
- Invalid domain string format — rejected by input validation (maxLength 253)
- No records of the requested type found — returns empty array for that record type
- Cloudflare DoH upstream timeout — may return an error or partial result
- Network error reaching the API — HTTP 402 payment required if payment header missing

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns a JSON object with the domain name, a boolean indicating whether it exists, the DNS source (Cloudflare 1.1.1.1), a map of record types (e.g. A, MX, TXT) each containing an array of records with values and TTL, and a DNSSEC validation flag.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "type": {
       "type": "string",
       "maxLength": 60
      },
      "domain": {
       "type": "string",
       "maxLength": 253
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "domain": "coinbase.com",
  "exists": true,
  "source": "Cloudflare public DNS-over-HTTPS (1.1.1.1)",
  "records": {
   "A": [
    {
     "ttl": 135,
     "value": "172.64.152.241"
    },
    {
     "ttl": 135,
     "value": "104.18.35.15"
    }
   ],
   "MX": [
    {
     "ttl": 300,
     "host": "aspmx.l.google.com",
     "priority": 1
    },
    {
     "ttl": 300,
     "host": "alt1.aspmx.l.google.com",
     "priority": 5
    }
   ]
  },
  "dnssec_validated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-dns-lookup-c8e75739/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
