# agent402.tools DNS Lookup

> agent402.tools DNS Lookup is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, not verified (last probed 2026-10-16); live alternatives: Stable Domains Availability Checker ($0.05) and NetIntel Bulk Domain Availability Check ($0.1).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Live alternatives for the same use case:
- [Stable Domains Availability Checker](https://www.zero.xyz/c/stable-domains-availability-checker-d9c6e557) ($0.05)
- [NetIntel Bulk Domain Availability Check](https://www.zero.xyz/c/netintel-bulk-domain-availability-check-0a16e4f3) ($0.1)

Performs DNS record lookups for a domain, supporting A, AAAA, MX, TXT, NS, and CNAME record types.

## Facts

- Endpoint: GET https://agent402.tools/api/dns?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-dns-lookup-390612ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o0GhndyUszb9aAi5RLVJM

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 agent402-tools-dns-lookup-390612ac
```

Example prompt: What are the MX records for gmail.com?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically resolve DNS records for a domain — e.g. verifying domain ownership via TXT records, finding mail servers, or checking IP addresses — especially within an x402 micropayment-enabled workflow at low cost per call.

## Known failure modes

- Domain does not exist — NXDOMAIN or empty record set returned
- Unsupported record type requested — only A, AAAA, MX, TXT, NS, CNAME are supported
- Malformed domain name input — validation error
- DNS timeout or upstream resolver failure
- Payment not processed — 402 response if USDC payment not included

## How this service works

Live DNS lookup for a domain: returns name, type and records[]. Supported record types: A, AAAA (addresses as strings), MX ({exchange, priority} objects), TXT (each record an array of its strings), NS and CNAME (hostnames). For SPF, DMARC or a full mail-security read use spf-check, dmarc-check or email-deliverability.

## Output

Returns the DNS records of the requested type for the given domain, such as IP addresses for A records, mail server hostnames for MX records, or verification strings for TXT records.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "name": "example.com",
   "type": "A"
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Domain name, e.g. example.com"
      },
      "type": {
       "type": "string",
       "description": "Record type (default A)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "name",
      "type",
      "records"
     ],
     "properties": {
      "name": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "records": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "A",
  "records": [
   "93.184.215.14"
  ]
 }
}
```

## More

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