{"uid":"cap_zNIqFT0jjW0Dq7Qd8j5KR","slug":"fetchx402-dns-resolver-2dafcbc9","name":"fetchx402 DNS Resolver","description":"Resolve public DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA) for a domain. Use when you need live DNS data and must not guess from memory or training data.","url":"https://api.fetchx402.com/v1/tools/dns","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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["domain"],"properties":{"type":{"enum":["A","AAAA","MX","TXT","CNAME","NS","SOA"],"type":"string","description":"DNS record type. A = IPv4 addresses, AAAA = IPv6, MX = mail exchangers, TXT = text (SPF/DKIM), CNAME = alias, NS = nameservers, SOA = start of authority. Defaults to A if omitted."},"domain":{"type":"string","description":"Public fully-qualified domain name to resolve, such as example.com. IPs, localhost, and internal/mDNS names are rejected."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ttl":20,"type":"A","rcode":"NOERROR","domain":"example.com","records":[{"address":"104.20.23.154"}],"resolver":"1.1.1.1"}},"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_67_HnUSstihvEvjn055DL","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":"Resolves live public DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA) for any fully-qualified domain name","exampleAgentPrompt":"What are the MX records for github.com right now — look them up live, don't guess from memory.","exampleUseCases":[{"title":"Verify SPF records before email send","prompt":"Check the TXT records for sendgrid.net — I need to see the current SPF and DKIM entries to make sure my email config is correct."},{"title":"Diagnose mail delivery failure","prompt":"Look up the MX records for acmecorp.com live — I'm trying to figure out which mail server should be receiving their email and whether DNS is configured properly."},{"title":"Confirm domain propagation after DNS change","prompt":"I just updated the A record for mysite.example.com — can you do a live DNS lookup to check what IPv4 address it's pointing to right now?"}],"resultDescription":"Returns the current live DNS records for the queried domain and record type, including record values (e.g. IP addresses for A records, hostnames and priorities for MX records, string values for TXT records, alias targets for CNAME, nameserver hostnames for NS, and authority data for SOA). Data is fetched in real-time from authoritative or recursive DNS, not from cached training data.","failureModes":["Domain not found or NXDOMAIN — returns error if the domain does not exist in DNS","Invalid domain format — IPs, localhost, internal/mDNS names, and malformed hostnames are rejected","No records of requested type — the domain exists but has no records of the specified type","DNS resolution timeout — transient network issue reaching upstream resolvers","Unsupported record type requested — only A, AAAA, MX, TXT, CNAME, NS, SOA are accepted"],"whenToPreferThis":"Use this endpoint when you need authoritative, real-time DNS data that cannot be guessed from training data or memory. It is ideal for debugging email delivery (MX/TXT), confirming DNS propagation after changes (A/CNAME), validating domain security configurations (TXT for SPF/DKIM), or enumerating nameservers (NS/SOA). Prefer this over static knowledge bases or web scraping when freshness and accuracy of DNS data is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:31:59.797Z","isFirstParty":false}