{"uid":"cap_DZ1k6XeOwV9shW1GA-dah","slug":"agenttools-dns-lookup-via-cloudflare-doh-8fa5fad5","name":"AgentTools DNS Lookup via Cloudflare DoH","description":"Query live DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) through Cloudflare's DNS-over-HTTPS resolver. Domain validation, email deliverability pre-checks and infrastructure discovery. Use this when an agent needs to real DNS records via Cloudflare DNS-over-HTTPS.","url":"https://agentstoolshub.com/api/v1/live/dns-lookup?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":["domain"],"properties":{"type":{"enum":["A","AAAA","MX","TXT","NS","CNAME","SOA"],"type":"string","description":"Record type"},"domain":{"type":"string","description":"Domain"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rDDWThvrBYp6OtaX1LcsP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Query live DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) for any domain using Cloudflare's DNS-over-HTTPS resolver","exampleAgentPrompt":"Can you look up the MX records for gmail.com using Cloudflare's DNS resolver so I can check its mail server configuration?","exampleUseCases":[{"title":"Email deliverability pre-check","prompt":"Before I send a bulk email campaign to addresses at acmecorp.com, can you check whether that domain has valid MX records set up so I know emails won't bounce?"},{"title":"Verify SPF or DKIM TXT record","prompt":"Can you fetch the TXT records for sendgrid.net so I can confirm their SPF record is published correctly in DNS?"},{"title":"Discover domain's IP addresses","prompt":"What IP addresses does shopify.com resolve to? Fetch the A records so I can see their current DNS configuration."}],"resultDescription":"Returns the live DNS response for the requested record type, including the DNS answer records with their values (e.g. IP addresses for A records, hostnames for MX/CNAME/NS, strings for TXT, serial/refresh info for SOA), sourced directly from Cloudflare's DNS-over-HTTPS resolver.","failureModes":["Domain does not exist — NXDOMAIN response returned","Requested record type not found for domain — empty answer section","Invalid domain format supplied — query rejected","DNS resolution timeout from Cloudflare upstream","Unsupported record type requested (only A, AAAA, MX, TXT, NS, CNAME, SOA accepted)","Payment not attached or insufficient USDC — 402 response"],"whenToPreferThis":"Use this endpoint when an agent needs real-time, authoritative DNS record resolution backed by Cloudflare's globally distributed DoH infrastructure, especially for email deliverability checks (MX), domain ownership verification (TXT), IP resolution (A/AAAA), or infrastructure discovery (NS, CNAME, SOA). Prefer this over cached or system-resolver lookups when freshness and reliability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:38.047Z","isFirstParty":false,"canonicalSlug":"agenttools-dns-lookup-via-cloudflare-doh-8fa5fad5"}