# x402 DNS Lookup API

> x402 DNS Lookup API is a paid API for AI agents from x402-qr-api.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-10).

Performs a DNS lookup for a given domain and returns DNS record information, payable via the x402 micropayment protocol

## Facts

- Endpoint: GET https://x402-qr-api.vercel.app/api/dns?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-dns-lookup-api-ad07784e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QxQh63UR6o-2hB04zgDsj

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 x402-dns-lookup-api-ad07784e
```

Example prompt: Can you do a DNS lookup for example.com and tell me its A records and nameservers?

## When to prefer this

Use this endpoint when you need programmatic DNS resolution with micropayment billing via the x402 protocol, particularly in agentic workflows where you need to verify domain configurations, resolve hostnames, or audit DNS setups without requiring a subscription or API key — just a small per-call USDC payment.

## Known failure modes

- Invalid or non-existent domain returns an error or empty record set
- Network timeout if DNS resolution takes too long
- Payment failure via x402 protocol prevents access
- Malformed domain input may return a 400 or validation error
- Temporary DNS resolver unavailability may cause intermittent failures

## How this service works

Generated by create next app

## Output

Returns DNS record data for the queried domain, including record types (A, MX, TXT, CNAME, NS, etc.), associated values such as IP addresses or hostnames, and TTL values. The response is structured JSON describing the resolved DNS information.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-dns-lookup-api-ad07784e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-qr-api.vercel.app](https://www.zero.xyz/host/x402-qr-api.vercel.app/llms.txt)
