# DNS Lookup

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

Fetches DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA) plus SPF and DNSSEC status for any domain via Cloudflare/Google DNS-over-HTTPS

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/web/dns?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-lookup-b68f5717
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3ODw_hDZhmsAIP7Yk_eFz

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 dns-lookup-b68f5717
```

Example prompt: Can you look up all the DNS records for stripe.com — I want to see where it points, its mail servers, any TXT records, and whether DNSSEC is enabled?

## When to prefer this

Choose this endpoint when you need programmatic, structured DNS record data for a specific domain — especially for troubleshooting email deliverability (SPF, MX), verifying domain ownership (TXT), checking where a domain resolves (A/CNAME), or confirming security configuration (DNSSEC, CAA). Prefer this over raw WHOIS/RDAP lookups when you need live DNS resolution rather than registration data.

## Known failure modes

- Domain does not exist (NXDOMAIN) — empty or error response for that record type
- Invalid domain format — validation error returned
- DNS resolution timeout — upstream Cloudflare/Google query failure
- No records of requested type exist — empty array for that record type
- Rate limiting or upstream DNS-over-HTTPS unavailability

## How this service works

DNS records of a domain: A, AAAA, MX, TXT, NS, CNAME, SOA and CAA, plus SPF and DNSSEC status, via Cloudflare/Google DNS-over-HTTPS. Use to check where a domain points, its mail servers, verification TXT records or why email or a website is failing.

## Output

Returns structured JSON containing all requested DNS record types (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA) for the specified domain, along with SPF and DNSSEC status. Each record type includes the relevant values (e.g. IP addresses, hostnames, priority, TTL). Resolved via Cloudflare and Google DNS-over-HTTPS for reliable, up-to-date results.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "types": {
       "type": "string",
       "description": "Comma-separated record types (default all): A,AAAA,MX,TXT,NS,CNAME,SOA,CAA"
      },
      "domain": {
       "type": "string",
       "description": "Domain name, e.g. stripe.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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