{"uid":"cap_UlyMotXw6rOVCONIdBRsZ","slug":"agent402-tools-dns-lookup-b95fa390","name":"agent402.tools DNS Lookup","description":"Resolve any DNS record type for a host: A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR. Returns the records plus a count. Built on Node's native resolver - no external API.","url":"https://agent402.tools/api/dns-lookup","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"host":{"type":"string","description":"Hostname to resolve"},"type":{"type":"string","description":"Record type: A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV (default A)"}}},"responseSchema":{"type":"json","example":{"host":"google.com","type":"MX","count":1,"records":[{"exchange":"smtp.google.com","priority":10}],"queriedAt":"2026-06-19T20:00:00.000Z"}},"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_TP-nek7GXyEh4v9Kl7RxX","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 any DNS record type (A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR) for a given hostname and returns the records with a count","exampleAgentPrompt":"Can you look up the MX records for example.com so I can see which mail servers handle its email?","exampleUseCases":null,"resultDescription":"Returns an array of DNS records of the requested type for the given hostname, along with a count of how many records were found. Record format varies by type (e.g. IP addresses for A/AAAA, hostnames and priorities for MX, strings for TXT).","failureModes":["Host not found / NXDOMAIN — domain does not exist","No records of the requested type exist for the host","Invalid record type specified — falls back to A or returns error","Network timeout if DNS resolution takes too long","Malformed hostname input"],"whenToPreferThis":"Use this endpoint when you need programmatic DNS resolution across any standard record type without relying on an external third-party DNS API — it uses Node's native resolver, making it lightweight and dependency-free. Prefer this over shell-based dig/nslookup calls when operating in an agent context that supports x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.138Z","isFirstParty":false}