# agentsvc.io DNS Lookup

> agentsvc.io DNS Lookup is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Resolves DNS records (A, AAAA, MX, TXT, CNAME, NS) for a given domain name, returning structured DNS data

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/dns-lookup?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-dns-lookup-7e91c8ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TJpM_MhDt1x9Qkgmkt7zm

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 agentsvc-io-dns-lookup-7e91c8ed -d '<json body>'
```

Example prompt: Look up the DNS records for stripe.com — I need the A records and MX records so I can verify their mail servers and IP addresses.

## When to prefer this

Choose this endpoint when you need programmatic, per-call DNS resolution without setting up API keys or accounts, particularly in agent workflows that require occasional DNS lookups and want to pay only per call in USDC. Prefer this over manual nslookup or setting up a dedicated DNS API subscription for lightweight, infrequent lookups or when operating in a crypto-native payment environment via x402.

## Known failure modes

- Domain does not exist (NXDOMAIN) — records object may be empty or omitted
- Invalid domain format — API may return a validation error
- Unsupported record type requested — only A, AAAA, MX, TXT, CNAME, NS are supported
- DNS timeout — upstream resolver may fail to respond in time
- Payment failure — USDC payment on Base not processed, request blocked

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object with the queried domain, a records map keyed by record type (A, AAAA, MX, TXT, CNAME, NS) containing the resolved values (IP strings for A/AAAA, exchange+priority objects for MX, raw strings for TXT/CNAME/NS), and a resolved_at ISO timestamp indicating when the lookup was performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "types": {
   "type": "array",
   "items": {
    "enum": [
     "A",
     "AAAA",
     "MX",
     "TXT",
     "CNAME",
     "NS"
    ],
    "type": "string"
   },
   "default": [
    "A"
   ],
   "description": "DNS record types to resolve. Default: [\"A\"]. Supported: A, AAAA, MX, TXT, CNAME, NS"
  },
  "domain": {
   "type": "string",
   "description": "Domain name to look up (e.g. 'example.com', 'mail.google.com')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "domain": "example.com",
   "records": {
    "A": [
     "93.184.216.34"
    ],
    "MX": [
     {
      "exchange": "mail.example.com",
      "priority": 10
     }
    ]
   },
   "resolved_at": "2026-04-07T12:00:00.000Z"
  },
  "success": true
 }
}
```

## More

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