{"uid":"cap_TSASeBBNaoWP1WooK6Dm2","slug":"agenttools-dns-lookup-via-cloudflare-doh-470a418c","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://agenttools-hub.vercel.app/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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dQiUOeyX5WjfROCT1j0RD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 github.com using Cloudflare's DNS resolver so I can verify their mail server setup?","exampleUseCases":[{"title":"Email deliverability pre-check","prompt":"Before I send a bulk email campaign to addresses at acme.com, can you check if that domain has valid MX records set up?"},{"title":"Domain infrastructure discovery","prompt":"I need to find all the name servers and SOA record for stripe.com to understand who controls their DNS."},{"title":"SPF record verification","prompt":"Can you pull the TXT records for shopify.com so I can see if they have an SPF record configured?"}],"resultDescription":"Returns structured DNS record data for the queried domain and record type, including record values such as IP addresses (A/AAAA), mail server hostnames and priorities (MX), name server hostnames (NS), text strings (TXT), canonical name targets (CNAME), or authoritative zone information (SOA), sourced live from Cloudflare's DNS-over-HTTPS resolver.","failureModes":["Domain does not exist (NXDOMAIN) — returns empty or error response","Requested record type not found for the domain — returns empty records","Invalid domain format — schema validation error","Network or Cloudflare resolver timeout — upstream latency error","Rate limiting or payment failure — 402 or 429 response"],"whenToPreferThis":"Choose this endpoint when you need real-time, authoritative DNS resolution backed by Cloudflare's reliable DoH infrastructure rather than cached or system-level DNS. Ideal for email deliverability pre-checks (MX lookups), domain ownership verification (TXT/SPF/DKIM), infrastructure discovery (NS/SOA), and resolving hostnames to IPs (A/AAAA). Prefer this over generic DNS tools when you need a specific record type from a trusted, low-latency resolver with structured JSON output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:22.771Z","isFirstParty":false,"canonicalSlug":"agenttools-dns-lookup-via-cloudflare-doh-470a418c"}