{"uid":"cap_jVnSZGi7PI0qbnmTaWSIl","slug":"402utils-dns-lookup-c8cbde88","name":"402utils DNS Lookup","description":"Micro API utilities for AI agents, priced per call and paid in USDC over the x402 protocol. PDF, screenshot, OG-image and more — no signup, no keys.","url":"https://402utils.com/v1/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":{"type":"string","default":"A","description":"Record type(s): A, AAAA, MX, TXT, NS, CNAME. Comma-separate for several, e.g. A,MX. Case-insensitive."},"domain":{"type":"string","format":"hostname","description":"Bare domain name to resolve, e.g. example.com (required). No scheme, path, port or IP literal."}},"description":"Query string only."}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["domain","records"],"properties":{"domain":{"type":"string","description":"Normalised (lowercased) domain that was resolved."},"records":{"type":"array","items":{"type":"object","required":["type","value","ttl"],"properties":{"ttl":{"type":"integer"},"type":{"enum":["A","AAAA","MX","TXT","NS","CNAME"],"type":"string"},"value":{"type":"string"},"priority":{"type":"integer","description":"MX records only."}}}},"nxdomain":{"type":"boolean","description":"Present and true when the domain does not exist."}}}}}}},"responseSchema":{"type":"json","example":{"domain":"example.com","records":[{"ttl":300,"type":"A","value":"93.184.215.14"},{"ttl":3600,"type":"MX","value":"mail.example.com","priority":10}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"down","priceObserved":{"p10Cents":"0.1000","medianCents":"0.1000","p90Cents":"0.1000","minCents":"0.1000","maxCents":"0.1000","p95Cents":"0.1000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QNgtr1Jf7xPGtc45iORAH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves one or more DNS record types (A, AAAA, MX, TXT, NS, CNAME) for a domain via DNS-over-HTTPS, returning normalized records with TTLs","exampleAgentPrompt":"What are the A and MX records for stripe.com — I want the IPs it resolves to and the mail servers, with their TTLs.","exampleUseCases":[{"title":"Validate email domain configuration","prompt":"Can you check if acme.com is set up to receive email? Look up their MX records and grab any SPF or DKIM TXT records so I know they're properly configured."},{"title":"Audit DNS records across subdomains","prompt":"I need to verify our staging environment is routed correctly. Pull the A records for api.staging.internal.company.com, app.staging.internal.company.com, and db.staging.internal.company.com — just show me what IPs they resolve to and their TTLs."},{"title":"Troubleshoot DNS propagation issues","prompt":"Our nameserver migration might be incomplete. Can you resolve the NS records, A records, and CNAME records for myapp.io and let me know if they're pointing to the new infrastructure yet?"}],"resultDescription":"A JSON object with the normalized domain queried, an array of DNS records (each with type, value, and TTL; MX records also include a numeric priority field), and an optional nxdomain boolean if the domain does not exist. TXT record quoting is stripped, trailing dots removed, and MX priority is split into its own field.","failureModes":["Invalid or malformed domain name returns a validation error","Unsupported record type string causes a bad request","Domain does not exist — returned as nxdomain:true in the response body rather than an HTTP error","Both Cloudflare and Google DoH unavailable — upstream timeout or service error","Network or DNS timeout from upstream resolvers","Missing required domain query parameter returns 400"],"whenToPreferThis":"Use this endpoint when you need reliable, normalized DNS record resolution via DoH without running your own DNS resolver. Ideal for agents needing to verify email setup (MX/TXT/SPF), confirm domain routing (A/AAAA/CNAME), or audit nameservers — especially when NXDOMAIN needs to be handled gracefully as data rather than an error. Prefer over raw DNS when normalization (priority splitting, dot-stripping, quote removal) saves downstream parsing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T09:27:45.234Z","isFirstParty":false,"canonicalSlug":"402utils-dns-lookup-c8cbde88"}