{"uid":"cap_mhWfl--Oy-CqjZFCMfMaX","slug":"x402-agent-tools-dns-lookup-e0453cdf","name":"x402 Agent Tools – DNS Lookup","description":"Pay-per-call tools for AI agents. USDC on Base or Solana via x402 v2; no keys, no accounts.","url":"https://api.gptshopltd.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":["name"],"properties":{"name":{"type":"string","description":"Public hostname, e.g. example.com or _dmarc.example.com"},"type":{"type":"string","description":"Record type: A (default), AAAA, TXT, MX, CNAME, NS"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"example.com","type":"TXT","found":true,"answer":[{"ttl":297,"data":"v=spf1 -all","name":"example.com","type":"TXT"}],"source":"Cloudflare DNS-over-HTTPS (1.1.1.1)","status":0,"authority":[],"statusText":"NOERROR","dnssecValidated":true}},"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":"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_Bi3GLJ7Q6EHA80sxszgMn","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":"Looks up DNS records (A, AAAA, TXT, MX, CNAME, NS) for a given hostname using Cloudflare DNS-over-HTTPS, with DNSSEC validation","exampleAgentPrompt":"Can you look up the TXT records for _dmarc.example.com to check its DMARC policy?","exampleUseCases":[{"title":"SPF record verification for email domain","prompt":"Check the TXT records for mailserver.mycompany.com so I can verify the SPF record is set up correctly."},{"title":"Resolve IP address for a hostname","prompt":"What IP address does api.stripe.com resolve to? Look up its A record for me."},{"title":"Check MX records for email routing","prompt":"Can you pull the MX records for gmail.com so I can see which mail servers handle their email?"}],"resultDescription":"Returns a JSON object with the queried hostname, record type, a boolean indicating if records were found, an array of answer records (each with name, type, TTL, and data), DNSSEC validation status, numeric status code, status text (e.g. NOERROR), the DNS source used, and any authority records.","failureModes":["Hostname not found returns found: false with an empty answer array","Invalid record type parameter returns a validation error","Non-existent domain returns NXDOMAIN status","DNSSEC validation failure indicated in dnssecValidated field","Network or upstream DNS resolver errors may return non-zero status codes","Missing required 'name' query parameter returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs programmatic DNS resolution without managing DNS infrastructure or API keys — especially useful for verifying email configuration (SPF, DMARC, MX), checking domain ownership via TXT records, or resolving hostnames to IPs. It is ideal for pay-per-call usage patterns via x402 micropayments where no account setup is desired. Prefer it over self-hosted DNS resolution when DNSSEC validation is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:37:54.249Z","isFirstParty":false,"canonicalSlug":"x402-agent-tools-dns-lookup-e0453cdf"}