# x402 Agent Tools – DNS Lookup

> x402 Agent Tools – DNS Lookup is a paid API for AI agents from api.gptshopltd.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Looks up DNS records (A, AAAA, TXT, MX, CNAME, NS) for a given hostname using Cloudflare DNS-over-HTTPS, with DNSSEC validation

## Facts

- Endpoint: GET https://api.gptshopltd.com/v1/dns/lookup?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-tools-dns-lookup-e0453cdf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mhWfl--Oy-CqjZFCMfMaX

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-agent-tools-dns-lookup-e0453cdf
```

Example prompt: Can you look up the TXT records for _dmarc.example.com to check its DMARC policy?

## When to prefer this

Choose this endpoint when an AI agent needs programmatic DNS resolution without managing DNS infrastructure or API keys — especially useful for verifying email configuration (SPF, DMARC, MX), checking domain ownership via TXT records, or resolving hostnames to IPs. It is ideal for pay-per-call usage patterns via x402 micropayments where no account setup is desired. Prefer it over self-hosted DNS resolution when DNSSEC validation is important.

## Known failure modes

- Hostname not found returns found: false with an empty answer array
- Invalid record type parameter returns a validation error
- Non-existent domain returns NXDOMAIN status
- DNSSEC validation failure indicated in dnssecValidated field
- Network or upstream DNS resolver errors may return non-zero status codes
- Missing required 'name' query parameter returns a 400-level error

## How this service works

Pay-per-call tools for AI agents. USDC on Base or Solana via x402 v2; no keys, no accounts.

## Output

Returns a JSON object with the queried hostname, record type, a boolean indicating if records were found, an array of answer records (each with name, type, TTL, and data), DNSSEC validation status, numeric status code, status text (e.g. NOERROR), the DNS source used, and any authority records.

## 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": "Public hostname, e.g. example.com or _dmarc.example.com"
      },
      "type": {
       "type": "string",
       "description": "Record type: A (default), AAAA, TXT, MX, CNAME, NS"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "TXT",
  "found": true,
  "answer": [
   {
    "ttl": 297,
    "data": "v=spf1 -all",
    "name": "example.com",
    "type": "TXT"
   }
  ],
  "source": "Cloudflare DNS-over-HTTPS (1.1.1.1)",
  "status": 0,
  "authority": [],
  "statusText": "NOERROR",
  "dnssecValidated": true
 }
}
```

## More

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