{"uid":"cap_o0GhndyUszb9aAi5RLVJM","slug":"agent402-tools-dns-lookup-390612ac","name":"agent402.tools DNS Lookup","description":"Live DNS lookup for a domain: returns name, type and records[]. Supported record types: A, AAAA (addresses as strings), MX ({exchange, priority} objects), TXT (each record an array of its strings), NS and CNAME (hostnames). For SPF, DMARC or a full mail-security read use spf-check, dmarc-check or email-deliverability.","url":"https://agent402.tools/api/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, e.g. example.com"},"type":{"type":"string","description":"Record type (default A)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["name","type","records"],"properties":{"name":{"type":"string"},"type":{"type":"string"},"records":{"type":"array","items":{"type":"string"}}}}}}}},"responseSchema":{"type":"json","example":{"name":"example.com","type":"A","records":["93.184.215.14"]}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"name":"example.com","type":"A"}}},"response":{"name":"example.com","type":"A","records":["104.20.23.154","172.66.147.243"]}},"exampleRequest":{"name":"example.com","type":"A"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.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_eH6588cOQ0HK77QKxplXM","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":"Performs DNS record lookups for a domain, supporting A, AAAA, MX, TXT, NS, and CNAME record types.","exampleAgentPrompt":"What are the MX records for gmail.com?","exampleUseCases":null,"resultDescription":"Returns the DNS records of the requested type for the given domain, such as IP addresses for A records, mail server hostnames for MX records, or verification strings for TXT records.","failureModes":["Domain does not exist — NXDOMAIN or empty record set returned","Unsupported record type requested — only A, AAAA, MX, TXT, NS, CNAME are supported","Malformed domain name input — validation error","DNS timeout or upstream resolver failure","Payment not processed — 402 response if USDC payment not included"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically resolve DNS records for a domain — e.g. verifying domain ownership via TXT records, finding mail servers, or checking IP addresses — especially within an x402 micropayment-enabled workflow at low cost per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:38:42.206Z","isFirstParty":false,"canonicalSlug":"agent402-tools-dns-lookup-390612ac"}