# Agent Utility Network DNS Lookup API

> Agent Utility Network DNS Lookup API is a paid API for AI agents from agent-utility-network.frosty-sound-4560.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Performs DNS record lookups for a given hostname, returning A, AAAA, CNAME, MX, TXT, and/or NS records with TTL data, paid via x402 on Base USDC.

## Facts

- Endpoint: POST https://agent-utility-network.frosty-sound-4560.workers.dev/v1/paid/dns-lookup
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-utility-network-dns-lookup-api-0cbd922a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mugt15eJ6o6ZweVF8285R

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-utility-network-dns-lookup-api-0cbd922a -d '<json body>'
```

Example prompt: Can you look up the A and MX DNS records for example.com?

## When to prefer this

Choose this endpoint when an AI agent needs programmatic DNS resolution as part of an automated workflow — for example, verifying domain ownership, checking email infrastructure, resolving IPs for network diagnostics, or enriching data with DNS metadata. It is monetized per-call via x402/Base USDC, making it suitable for agents with crypto payment capabilities. Prefer this over free DNS APIs when operating within an x402-compatible agent framework that already handles micropayments.

## Known failure modes

- Hostname not found / NXDOMAIN — domain does not exist or has no records of the requested type
- Invalid hostname format — if hostname is malformed or outside 3–253 character bounds
- Unsupported record type requested — only A, AAAA, CNAME, MX, TXT, NS are valid
- Payment failure — x402 payment not accepted or insufficient USDC balance
- Timeout — upstream DNS resolver did not respond in time
- Empty result — domain exists but has no records of the requested types

## How this service works

Quality-scored paid utility APIs for AI agents over x402 on Base USDC.

## Output

Returns a JSON object containing the queried hostname and a records map keyed by record type (e.g. A, MX, TXT), where each entry is an array of objects with 'ttl' (integer seconds) and 'data' (the record value string, e.g. an IP address, mail server hostname, or text value).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "types": {
   "type": "array",
   "items": {
    "enum": [
     "A",
     "AAAA",
     "CNAME",
     "MX",
     "TXT",
     "NS"
    ],
    "type": "string"
   },
   "maxItems": 6
  },
  "hostname": {
   "type": "string",
   "maxLength": 253,
   "minLength": 3
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "records": {
    "A": [
     {
      "ttl": 300,
      "data": "93.184.216.34"
     }
    ]
   },
   "hostname": "example.com"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-utility-network-dns-lookup-api-0cbd922a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-utility-network.frosty-sound-4560.workers.dev](https://www.zero.xyz/host/agent-utility-network.frosty-sound-4560.workers.dev/llms.txt)
