{"uid":"cap_z30KuPqbnSCe53AI6k8Hf","slug":"x402-agentutility-ai-7c55e52a","name":"x402 DNS Lookup / DNS-over-HTTPS Resolver","description":"DNS lookup / DNS resolver / dig replacement / nslookup API / DoH proxy / authoritative-record fetch / MX checker / SPF + DMARC TXT inspector / CAA + DNSSEC inspector / nameserver finder / CDN-routing detector. Queries Cloudflare 1.1.1.1 DNS-over-HTTPS for any subset of A, AAAA, MX, TXT, NS, CNAME, SOA, PTR, SRV, CAA, DNSKEY, DS, TLSA, HTTPS, SVCB records and returns both grouped (per type, with TTL) and flat shapes for easy consumption.","url":"https://x402.agentutility.ai/dns-lookup?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["domain"],"properties":{"types":{"type":"array","items":{"type":"string"},"description":"Optional record types to query. Default: ['A', 'AAAA', 'MX', 'TXT', 'NS']. Any of A, AAAA, MX, TXT, NS, CNAME, SOA, PTR, SRV, CAA, DNSKEY, DS, TLSA, HTTPS, SVCB."},"domain":{"type":"string","description":"Domain or hostname to resolve (e.g. 'example.com', 'mail.example.com'). Sent as-is, not stripped to apex."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"flat":{"type":"object","properties":{"a":{"type":"array","items":{"type":"string"}},"mx":{"type":"array","items":{"type":"string"}},"txt":{"type":"array","items":{"type":"string"}}}},"domain":{"type":"string"},"source":{"type":"string"},"records":{"type":"object","properties":{"A":{"type":"array","items":{"type":"object","properties":{"ttl":{"type":"integer"},"data":{"type":"string"}}}},"MX":{"type":"array","items":{"type":"object","properties":{"ttl":{"type":"integer"},"data":{"type":"string"}}}},"TXT":{"type":"array","items":{"type":"object","properties":{"ttl":{"type":"integer"},"data":{"type":"string"}}}}}},"total_records":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"flat":{"a":["93.184.216.34"],"mx":["0 ."],"txt":["v=spf1 -all"]},"domain":"example.com","source":"Cloudflare DNS-over-HTTPS (1.1.1.1)","records":{"A":[{"ttl":3600,"data":"93.184.216.34"}],"MX":[{"ttl":3600,"data":"0 ."}],"TXT":[{"ttl":3600,"data":"v=spf1 -all"}]},"total_records":5}},"example":{"request":{"input":{"body":{"types":["A","AAAA","MX","TXT","NS"],"domain":"example.com"},"type":"http","method":"POST","bodyType":"json"}},"response":{"flat":{"a":["172.66.147.243","104.20.23.154"],"mx":[{"host":"","priority":0}],"ns":["hera.ns.cloudflare.com","elliott.ns.cloudflare.com"],"caa":[],"txt":["v=spf1 -all","_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9"],"aaaa":["2606:4700:10::ac42:93f3","2606:4700:10::6814:179a"],"cname":[]},"domain":"example.com","source":"Cloudflare DNS-over-HTTPS (1.1.1.1)","records":{"A":[{"ttl":103,"data":"172.66.147.243","name":"example.com"},{"ttl":103,"data":"104.20.23.154","name":"example.com"}],"MX":[{"ttl":129,"data":"0 .","name":"example.com"}],"NS":[{"ttl":65653,"data":"hera.ns.cloudflare.com.","name":"example.com"},{"ttl":65653,"data":"elliott.ns.cloudflare.com.","name":"example.com"}],"TXT":[{"ttl":288,"data":"\"v=spf1 -all\"","name":"example.com"},{"ttl":288,"data":"\"_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9\"","name":"example.com"}],"AAAA":[{"ttl":34,"data":"2606:4700:10::ac42:93f3","name":"example.com"},{"ttl":34,"data":"2606:4700:10::6814:179a","name":"example.com"}]},"total_records":9,"types_queried":["A","AAAA","MX","TXT","NS"]}},"exampleRequest":{"types":["A","AAAA","MX","TXT","NS"],"domain":"example.com"},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_49YBoFJ7KdZha0iR8j27R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Queries Cloudflare 1.1.1.1 DoH to retrieve any combination of DNS record types (A, AAAA, MX, TXT, NS, CNAME, SOA, PTR, SRV, CAA, DNSKEY, DS, TLSA, HTTPS, SVCB) for a given domain, returning grouped and flat result shapes with TTLs.","exampleAgentPrompt":"Can you look up the MX and TXT DNS records for example.com so I can check its mail routing and SPF/DMARC configuration?","exampleUseCases":null,"resultDescription":"Returns DNS records grouped by record type (each group includes the type, TTL, and list of record data values) as well as a flat list of all records — making it easy to inspect individual record types or iterate across all results at once.","failureModes":["Domain does not exist (NXDOMAIN) — returns empty result or error indicating non-existent domain","Requested record type not present for domain — returns empty array for that type","Invalid domain format supplied — validation error response","Upstream Cloudflare DoH timeout or unavailability — upstream error propagated","Unsupported record type requested — error or ignored field"],"whenToPreferThis":"Prefer this endpoint when an agent needs programmatic DNS resolution without setting up a local resolver, when checking email infrastructure (MX, SPF/DMARC TXT), validating DNSSEC, inspecting CAA records for certificate issuance policy, or detecting CDN routing — especially when multiple record types are needed in a single call with both grouped and flat output shapes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:51:41.825Z","isFirstParty":false,"canonicalSlug":"x402-agentutility-ai-7c55e52a"}