# ScrapeMole DNS Lookup

> ScrapeMole DNS Lookup is a paid API for AI agents from domains.scrapemole.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Performs live DNS record lookups via DNS-over-HTTPS for any domain or hostname, returning structured DNS records with DNSSEC validation status

## Facts

- Endpoint: GET https://domains.scrapemole.workers.dev/v1/dns?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapemole-dns-lookup-c47ef0b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6JN2PVMmF5mnF697dFtWV

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 scrapemole-dns-lookup-c47ef0b2
```

Example prompt: Look up the A, MX, and TXT DNS records for stripe.com so I can see what IPs it resolves to and what mail servers it uses.

## When to prefer this

Choose this endpoint when you need live, authoritative DNS record data via DNS-over-HTTPS with DNSSEC validation status, especially when you want pay-per-call pricing with no subscription and guaranteed no-charge on failures. Prefer over self-hosted DNS resolvers when you need a managed, reliable DoH service with structured JSON output.

## Known failure modes

- NXDOMAIN returned if domain does not exist
- Invalid record type requested returns error
- Payment failure results in no charge and no response
- Rate limiting if too many record types requested (max 8)
- Non-existent subdomain may return NXDOMAIN even if parent domain exists

## How this service works

Pay-per-call domain intelligence for agents: live DNS records (DoH), WHOIS/RDAP registration data (registrar, dates, status, nameservers; no personal data), bulk domain availability (10 names per call) an email security audit (SPF, DKIM, DMARC, MTA-STS, BIMI) with a grade, a live SSL/TLS certificate check and subdomains from Certificate Transparency logs (crt.sh). USDC via x402; failed calls are never charged.

Payments: x402 v2, scheme "exact", USDC on Base (eip155:8453). The payment is verified before the work and settled only when the response is 200. Terms: https://domains.scrapemole.workers.dev/terms

## Output

A JSON object containing the queried domain name, DNS status (e.g. NOERROR, NXDOMAIN), a map of record types to arrays of record objects (each with name, type, TTL, and data), the resolver used, and whether DNSSEC validation passed.

## 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",
       "examples": [
        "cloudflare.com"
       ],
       "description": "Domain or hostname, e.g. example.com or www.example.com."
      },
      "type": {
       "type": "string",
       "default": "A,AAAA,CNAME,MX,NS,TXT",
       "description": "Comma-separated record types (max 8). Supported: A, NS, CNAME, SOA, PTR, MX, TXT, AAAA, SRV, DS, DNSKEY, HTTPS, SVCB, CAA."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "cloudflare.com",
  "status": "NOERROR",
  "records": {
   "A": [
    {
     "ttl": 300,
     "data": "104.16.132.229",
     "name": "cloudflare.com",
     "type": "A"
    }
   ],
   "MX": [
    {
     "ttl": 300,
     "data": "5 mxa-canary.global.inbound.cf-emailsecurity.net",
     "name": "cloudflare.com",
     "type": "MX"
    }
   ]
  },
  "resolver": "cloudflare-dns.com",
  "dnssecValidated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapemole-dns-lookup-c47ef0b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from domains.scrapemole.workers.dev](https://www.zero.xyz/host/domains.scrapemole.workers.dev/llms.txt)
