Data tools / Email checks, uptime and web reading

DNS lookup API: A, AAAA, MX, NS, TXT and CNAME records with SPF and DMARC

Use when you need the DNS records of a domain: A, AAAA, MX, NS, TXT and CNAME, with the SPF and DMARC records picked out (has_spf, has_dmarc, DMARC policy), DNSSEC flag and DNS status. Live DNS over DoH (Cloudflare, LibreDNS fallback). $0.0324 per call (USDC or USDT). Or pay by stablecoin transfer with a one-time quote: see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/x402/v2/dns-lookup?domain=example.com'
ParameterRequiredWhat it is
domainyesDomain name (e.g. example.com)

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

What the answer contains

Top-level fields of the JSON answer, read from the example below:

Source, as the answer itself states it:

Example answer

{
  "domain": "example.com",
  "domain_exists": true,
  "dns_status": "NOERROR",
  "a_records": [
    "104.20.23.154",
    "172.66.147.243"
  ],
  "aaaa_records": [
    "2606:4700:10::6814:179a",
    "2606:4700:10::ac42:93f3"
  ],
  "mx_records": [
    {
      "exchange": ".",
      "priority": 0
    }
  ],
  "ns_records": [
    "elliott.ns.cloudflare.com",
    "hera.ns.cloudflare.com"
  ],
  "txt_records": [
    "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9",
    "v=spf1 -all"
  ],
  "cname_records": [],
  "cname_chain_of_a": [],
  "has_spf": true,
  "spf_record": "v=spf1 -all",
  "spf_count": 1,
  "has_dmarc": true,
  "dmarc_record": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s",
  "dmarc_policy": "reject",
  "dnssec_validated": true,
  "resolver": "cloudflare",
  "errors": [],
  "query_time_ms": 445,
  "checked_at": "2026-12-01T22:31:48.932Z",
  "sources": [
    "https://cloudflare-dns.com/dns-query"
  ],
  "note": "DNS read at the time shown from Cloudflare 1.1.1.1 over DNS-over-HTTPS (a query it did not answer was asked at LibreDNS). SPF = the TXT record starting v=spf1 (RFC 7208), DMARC = the TXT of _dmarc.<domain> starting v=DMARC1 (RFC 7489). A field is null when no resolver answered that query."
}

Free sample, no payment: /x402/v2/dns-lookup/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/email-uptime-web-reader, tool dns_lookup. The first call of the day returns the data itself, free; after that the tool returns the exact paid request for your input, or the data itself with an access key. The core tools are also on https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp, and any tool can be called there by name.

Related tools

Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools · Trust and limits