# Datakoot DNS Lookup

> Datakoot DNS Lookup is a paid API for AI agents from x402.datakoot.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Performs a DNS lookup for a domain and returns its DNS records (A, MX, TXT, and other common types) via a pay-per-call API.

## Facts

- Endpoint: POST https://x402.datakoot.com/api/dns_lookup?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-dns-lookup-70775db2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vpYjIcAyVY0OOoA9zgDbd

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 datakoot-dns-lookup-70775db2 -d '<json body>'
```

Example prompt: Can you look up all the DNS records for stripe.com — especially the MX and TXT records?

## When to prefer this

Choose this endpoint when you need programmatic, structured DNS record data for a domain — especially useful for security research, email deliverability checks, infrastructure mapping, or domain verification workflows. It supports filtering by record type, making it efficient for targeted lookups. Prefer this over manual DNS tools when you need machine-readable output. It is pay-per-call ($0.002 USDC via x402 on Base), which makes it cost-effective for occasional lookups, and also available free up to 100 calls/day via MCP.

## Known failure modes

- Domain does not exist or is unresolvable — returns empty records or error
- Invalid domain name format — may return a validation error
- Requested record type not found — that type is omitted from the response
- Network or upstream DNS resolver failure — returns a server error
- Payment failure via x402 — call is rejected before execution

## How this service works

48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.

## Output

A JSON object containing the domain name and a map of DNS record types to their values — for example, A records as a list of IP addresses, MX records as a list of mail server entries with priorities, and TXT records as raw strings. Only record types with results are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "types": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Optional subset of record types, e.g. [\"MX\",\"TXT\"]. Defaults to all common types."
  },
  "domain": {
   "type": "string",
   "description": "Domain name, e.g. stripe.com"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "domain": "cloudflare.com",
  "records": {
   "A": [
    "104.16.133.229",
    "104.16.132.229"
   ],
   "MX": [
    "5 mxa-canary.global.inbound.cf-emailsecurity.net.",
    "5 mxb-canary.global.inbound.cf-emailsecurity.net."
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-dns-lookup-70775db2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.datakoot.com](https://www.zero.xyz/host/x402.datakoot.com/llms.txt)
