# x402 DataShop DNS Resolver

> x402 DataShop DNS Resolver is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Resolves live DNS records for any domain via Cloudflare 1.1.1.1 DNS-over-HTTPS, with an optional email-readiness check combining MX, SPF, and DMARC

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/domain/dns
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-datashop-dns-resolver-9d54aa47
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OVPmIAGu_pkkOZVkdxxXi

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-datashop-dns-resolver-9d54aa47
```

Example prompt: Before I email this client, can you check if stripe.com is properly set up to receive email — I need the MX, SPF, and DMARC records and whether it's actually email-ready?

## When to prefer this

Choose this endpoint when you need real-time DNS resolution without running your own DNS client, especially for the email readiness check (check=email) which combines MX, SPF, and DMARC into a single actionable signal before emailing or invoicing a contact. Prefer over general WHOIS/RDAP endpoints when you need record-level DNS data rather than registration metadata.

## Known failure modes

- Domain does not exist or has no records of the requested type — returns empty records list
- Invalid DNS record type supplied — schema validation error
- Cloudflare DNS-over-HTTPS upstream timeout — service unavailable response
- Malformed domain name input — query rejected
- Payment not provided or insufficient — 402 Payment Required response

## How this service works

Live DNS records resolved via Cloudflare 1.1.1.1 DNS-over-HTTPS (public facts, real time). Query: ?name=anthropic.com&type=MX (type in A|AAAA|MX|TXT|NS|CNAME, default MX). Or ?name=anthropic.com&check=email -> combined MX + SPF + DMARC with an email_ready boolean, useful before emailing or invoicing a contact. JSON with records list; 5 min cache.

## Output

A JSON object containing a records list with resolved DNS entries for the queried type; when check=email is used, returns combined MX, SPF, and DMARC records plus an email_ready boolean indicating whether the domain has a working email infrastructure. Results are cached for 5 minutes.

## 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": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Domain to resolve, e.g. anthropic.com"
      },
      "type": {
       "enum": [
        "A",
        "AAAA",
        "MX",
        "TXT",
        "NS",
        "CNAME"
       ],
       "type": "string",
       "default": "MX",
       "description": "DNS record type"
      },
      "check": {
       "enum": [
        "email"
       ],
       "type": "string",
       "description": "check=email returns combined MX + SPF + DMARC instead of raw records"
      }
     }
    }
   },
   "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/x402-datashop-dns-resolver-9d54aa47/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
