{"uid":"cap_GZerj_W3fqvTJNpkFid1N","slug":"agentreader-dns-lookup-6aafad53","name":"AgentReader DNS Lookup","description":"DNS lookup over Cloudflare DoH: query A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA or PTR records for any domain and get structured JSON answers with TTLs. Useful for domain research, email validation and infrastructure checks.","url":"https://agentreader.dev/dns?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","description":"Domain name to resolve"},"type":{"type":"string","description":"Record type (A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, PTR). Default A"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4v85uWxl10ydR8b_-29y9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs DNS lookups via Cloudflare DoH for any domain, returning structured JSON answers with TTLs for record types A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, and PTR.","exampleAgentPrompt":"Look up the MX records for example.com so I can check where its email is being routed.","exampleUseCases":[{"title":"Email deliverability verification","prompt":"Can you fetch the MX and TXT records for sendgrid.net so I can confirm its SPF and mail routing setup?"},{"title":"Domain infrastructure audit","prompt":"Pull the NS and SOA records for stripe.com — I want to see which nameservers are authoritative and what the zone serial number is."},{"title":"Subdomain CNAME resolution","prompt":"Resolve the CNAME record for docs.github.com and tell me what it ultimately points to, including the TTL."}],"resultDescription":"A structured JSON object containing the DNS answer section with one or more records matching the queried type, each including the record name, type, TTL, and data value (e.g. IP address, hostname, priority+exchange for MX, text string for TXT). Also includes the question section echoing the queried name and type.","failureModes":["Domain does not exist (NXDOMAIN) — returns empty answer array or error status","Invalid record type string — returns error or no results","Timeout from Cloudflare DoH upstream — returns service error","Malformed domain name input — returns validation error","SERVFAIL from authoritative nameserver — propagated as DNS error"],"whenToPreferThis":"Choose this endpoint when you need reliable, structured DNS resolution backed by Cloudflare's global DoH infrastructure. It is ideal for agents that need to validate email infrastructure (MX/TXT/SPF), audit domain configuration, verify CNAME chains, or perform reverse PTR lookups — all returning clean JSON with TTLs rather than raw dig-style output. Prefer it over generic DNS libraries when operating in a serverless or sandboxed agent environment that cannot make raw UDP DNS queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:36:24.851Z","isFirstParty":false,"canonicalSlug":"agentreader-dns-lookup-6aafad53"}