{"uid":"cap_PhkedZeeN_9uO3hsyvdat","slug":"swift-bot-labs-dns-lookup-546b24eb","name":"Swift Bot Labs DNS Lookup","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/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","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Domain name (IDN allowed), e.g. example.com"},"type":{"enum":["A","NS","CNAME","SOA","PTR","MX","TXT","AAAA","SRV","NAPTR","DS","DNSKEY","HTTPS","SVCB","CAA","TLSA"],"type":"string","description":"Record type"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"dns-lookup","result":{"name":"example.com","type":"MX","status":"NOERROR","answers":[{"ttl":3600,"data":"0 .","name":"example.com","type":"MX"}],"dnssecValidated":true}}},"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_K6CofDGY6Y5bkgi0r8z-L","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":"Performs a DNS record lookup for a given domain name and record type, returning parsed answers with DNSSEC validation status","exampleAgentPrompt":"Can you look up the MX records for example.com and tell me if DNSSEC is validated?","exampleUseCases":[{"title":"Email domain MX record check","prompt":"Look up the MX records for sendgrid.net so I can confirm what mail servers handle their inbound email."},{"title":"DNSSEC validation for security audit","prompt":"Query the DS records for cloudflare.com and tell me whether DNSSEC is validated on the domain."},{"title":"SPF record retrieval for deliverability","prompt":"Fetch the TXT records for mailchimp.com — I need to see the SPF record to troubleshoot email delivery issues."}],"resultDescription":"Returns a JSON object with the domain name, record type, DNS response status (e.g. NOERROR, NXDOMAIN), an array of answer records each containing name, type, TTL, and data, plus a boolean indicating whether DNSSEC was validated.","failureModes":["Domain does not exist — returns NXDOMAIN status with empty answers array","Requested record type not found — returns NOERROR with empty answers","Invalid domain name format — likely returns a 400 or error response","DNSSEC validation failure — dnssecValidated set to false","Payment not received or x402 handshake fails — 402 response before DNS query is executed","Network timeout reaching upstream DNS resolver — may return error or timeout response"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call DNS lookup without setting up an account or managing API keys. It is ideal for agents that only occasionally need DNS data, want DNSSEC validation status alongside records, and are already operating in an x402 micropayment context. Prefer alternatives (e.g. Google DNS-over-HTTPS or Cloudflare's 1.1.1.1 API) if you need free, high-volume, or unauthenticated access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:39.341Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-dns-lookup-546b24eb"}