{"uid":"cap_SQ_Cv6uXrJbmZVQmhp6t9","slug":"dns-lookup-via-cloudflare-dns-over-https-a8c947c3","name":"DNS Lookup via Cloudflare DNS-over-HTTPS","description":"Resolve DNS records for a domain via Cloudflare DNS-over-HTTPS — A, AAAA, MX, TXT, NS, CNAME, SOA. Pass name= and type= (default A). Returns each record with its TTL, plus NXDOMAIN when the name does not exist. The DNS commodity agents call constantly for infra, email and domain checks, served at the sub-cent floor. Not financial advice.","url":"https://402.com.tr/api/x402/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"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Domain"},"type":{"type":"string","description":"Record type (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.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_HK_ltYk1mJkNucqLr1vTT","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":"Resolve DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) for any domain using Cloudflare DNS-over-HTTPS, returning each record with its TTL or NXDOMAIN if the domain doesn't exist.","exampleAgentPrompt":"What are the MX records for gmail.com? I need to verify the email routing setup.","exampleUseCases":[{"title":"Email deliverability verification","prompt":"Can you pull the MX and TXT records for example.com so I can check whether SPF and DKIM are properly configured for email deliverability?"},{"title":"Domain existence check","prompt":"Does the domain myfancystartup.io actually exist in DNS, or does it return NXDOMAIN? Look up its A record."},{"title":"Infrastructure IP resolution","prompt":"What IP address does api.stripe.com resolve to right now? Give me the A record and its TTL."}],"resultDescription":"Returns one or more DNS resource records matching the requested type, each including the record data (e.g. IP address, hostname, or string value) and its TTL in seconds. If the domain does not exist, returns an NXDOMAIN response. Multiple records may be returned for types like MX or NS.","failureModes":["NXDOMAIN returned when the domain does not exist in DNS","Empty answer set if the requested record type is not configured for the domain","Invalid or malformed domain name may produce an error response","Upstream Cloudflare DNS-over-HTTPS service unavailability could cause timeouts","Unsupported record type strings may produce unexpected results"],"whenToPreferThis":"Choose this endpoint when you need fast, reliable DNS resolution backed by Cloudflare's global DNS infrastructure, especially for infrastructure checks, email deliverability validation (MX/TXT/SPF/DKIM), domain existence verification, or any agent workflow that requires real-time DNS data. At sub-cent pricing per call it is cost-effective for high-frequency DNS polling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:38:24.053Z","isFirstParty":false,"canonicalSlug":"dns-lookup-via-cloudflare-dns-over-https-a8c947c3"}