{"uid":"cap_PiNLj-9AlbqVrSl_Dwnlt","slug":"useful-work-dns-lookup-dns-over-https-9d9cf90b","name":"Useful Work DNS Lookup (DNS-over-HTTPS)","description":"Look up DNS records (A, AAAA, CNAME, MX, NS, TXT, CAA) over DNS-over-HTTPS","url":"https://tools.usefulwork.app/tools/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"},"type":{"enum":["A","AAAA","CNAME","MX","NS","TXT","CAA"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"example.com","type":"A","status":0,"answers":[{"ttl":300,"data":"93.184.215.14","name":"example.com"}]}},"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_vrSQIU17-p1c0sGYT4jlu","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":"Resolves DNS records (A, AAAA, CNAME, MX, NS, TXT, CAA) for a given domain via DNS-over-HTTPS","exampleAgentPrompt":"What are the MX records for gmail.com? I want to see which mail servers handle their email.","exampleUseCases":[{"title":"Email deliverability DNS check","prompt":"Can you pull the TXT records for sendgrid.net? I need to check if their SPF record is properly set up."},{"title":"Verify domain IP address","prompt":"What IP address does shopify.com resolve to? Look up the A record for me."},{"title":"Check CDN or proxy CNAME","prompt":"Look up the CNAME record for www.cloudflare.com — I want to see if it's pointing to a CDN or a direct host."}],"resultDescription":"Returns the DNS records of the requested type for the given domain, including record values and relevant metadata such as TTL, as returned by a DNS-over-HTTPS resolver.","failureModes":["Domain does not exist (NXDOMAIN) — returns empty or error response","Invalid domain name format — likely returns an error","Unsupported record type requested — schema restricts to A, AAAA, CNAME, MX, NS, TXT, CAA","DNS resolution timeout — upstream resolver may fail to respond","Payment failure or insufficient USDC balance — x402 payment rejected"],"whenToPreferThis":"Use this endpoint when you need a quick, programmatic DNS record lookup for any standard record type without setting up your own DNS resolver. Ideal for agents verifying email configurations, checking domain propagation, auditing infrastructure, or validating domain ownership via TXT records. Prefer over raw DNS libraries when operating in an environment without direct UDP/TCP DNS access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:35:01.200Z","isFirstParty":false,"canonicalSlug":"useful-work-dns-lookup-dns-over-https-9d9cf90b"}