# Agent Data API – DNS Lookup

> Agent Data API – DNS Lookup is a paid API for AI agents from agent-data-api-ui1c.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Performs DNS record lookups for a given domain name and record type, returning resolved DNS records.

## Facts

- Endpoint: GET https://agent-data-api-ui1c.onrender.com/net/dns
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-api-dns-lookup-e0811f93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mo73nopB0YBNOuCDD5Ve2

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-data-api-dns-lookup-e0811f93
```

Example prompt: Look up the MX records for example.com so I can see where its email is routed.

## When to prefer this

Choose this endpoint when an agent needs programmatic, pay-per-call DNS resolution without managing DNS resolver infrastructure. Ideal for lightweight DNS checks (A, MX, TXT, CNAME) integrated into automated workflows, especially when already using the Agent Data API suite for other data tasks like web scraping or email validation.

## Known failure modes

- Domain does not exist (NXDOMAIN) — returns an error or empty record set
- Invalid domain name format — returns a validation error
- Unsupported record type — may return an error or empty result
- DNS timeout or upstream resolver failure — returns a service error
- Rate limiting or payment failure via x402 protocol — returns 402 Payment Required

## How this service works

Pay-per-call data services for AI agents: web extraction (text, Markdown, metadata), PDF-to-text, RSS/Atom parsing, FX and crypto prices, weather, DNS and email validation. All paid endpoints use the x402 payment protocol (USDC).

## Output

Returns the DNS records matching the requested type (e.g. A, MX, CNAME, TXT, NS) for the specified domain, including resolved values such as IP addresses, mail servers, or text strings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "host"
 ],
 "properties": {
  "host": {
   "type": "string",
   "description": "Domain name"
  },
  "type": {
   "type": "string",
   "description": "Record type (default A)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-api-dns-lookup-e0811f93/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-api-ui1c.onrender.com](https://www.zero.xyz/host/agent-data-api-ui1c.onrender.com/llms.txt)
