# AgentToll DNS Lookup

> AgentToll DNS Lookup is a paid API for AI agents from agenttoll.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Performs DNS record lookups for a given domain, returning records of a specified type (A, AAAA, MX, TXT, NS, CNAME)

## Facts

- Endpoint: POST https://agenttoll.dev/paid/security/dns-lookup
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttoll-dns-lookup-f2997fc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ME3Ncz6S2xmV9j5dNIkL_

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 agenttoll-dns-lookup-f2997fc8 -d '<json body>'
```

Example prompt: Can you look up the MX records for gmail.com so I can see what mail servers Google uses?

## When to prefer this

Use this endpoint when an AI agent needs programmatic DNS resolution as part of security research, OSINT investigation, email deliverability troubleshooting, or infrastructure auditing workflows. Particularly useful when you need specific record types beyond a simple ping, or when you need DNS data as a paid, reliable, metered service integrated with the x402 micropayment protocol on Base.

## Known failure modes

- Domain does not exist — NXDOMAIN response returned
- Invalid DNS record type specified — validation error
- Network timeout reaching upstream DNS resolver
- Domain is valid but has no records of the requested type — empty result set
- Malformed domain string input — parsing error

## How this service works

108+ receipt-backed x402 work products for AI agents. Clear prices, spend caps, buyer metadata, and structured results over Base USDC.

## Output

Returns a structured object containing the requested DNS records for the domain, including record values, types, and TTL information where available. Record content varies by type: A/AAAA return IP addresses, MX returns mail server hostnames with priority, TXT returns raw text strings, NS returns name server hostnames, CNAME returns the canonical name target.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "type": {
   "type": "string",
   "description": "optional: A, AAAA, MX, TXT, NS, CNAME"
  },
  "domain": {
   "type": "string",
   "description": "string domain name"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

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