{"uid":"cap_RAOVtalduf9kVXkcqeDYz","slug":"nightshift-labs-dns-lookup-api-85f94591","name":"Nightshift Labs DNS Lookup API","description":"DNS lookup in one call: A, AAAA, CNAME, MX, TXT, NS and CAA records with TTLs (or just the types you ask for), NXDOMAIN status, DNSSEC validation, plus parsed hints: SPF record, CAA certificate issuers and which services the domain is verified with (TXT verification tokens). Resolved via DNS-over-HTTPS.","url":"https://nightshift-x402.nightshift-labs.workers.dev/v1/domain/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 or host name"},"types":{"type":"string","description":"optional comma list of A,AAAA,CNAME,MX,TXT,NS,CAA,SOA (default: all but SOA)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"github.com","hints":{"spf":"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com … ~all","hasMx":true,"caaIssuers":[],"verificationTokens":["adobe-idp-site-verification"]},"status":"NOERROR","records":{"A":[{"ttl":46,"data":"140.82.121.3"}],"MX":[{"ttl":300,"data":"0 github-com.mail.protection.outlook.com."}]},"dnssecValidated":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CGLT-6NC2oI5Gm0YUZkFw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 given domain, returning all major record types with hints like SPF, MX presence, CAA issuers, and DNSSEC validation status.","exampleAgentPrompt":"Can you look up all the DNS records for github.com, including its A records, MX records, and TXT records?","exampleUseCases":[{"title":"Email deliverability diagnostics","prompt":"Can you check the DNS records for acme.com and tell me if it has SPF and MX records set up correctly for email delivery?"},{"title":"Domain ownership verification","prompt":"Look up the TXT records for startup.io — I need to find any domain verification tokens like those used by Adobe or Google."},{"title":"Security audit of domain config","prompt":"Pull all DNS records for mycompany.com and let me know if DNSSEC is validated and who the authorized CAA certificate issuers are."}],"resultDescription":"A JSON object containing the domain name, a status field (e.g. NOERROR), a records map keyed by DNS record type (A, AAAA, MX, TXT, NS, CNAME, CAA) each with TTL and data, plus a hints object summarizing SPF string, hasMx boolean, caaIssuers array, verificationTokens array, and dnssecValidated boolean.","failureModes":["Domain does not exist — returns NXDOMAIN status","Invalid or malformed domain name input — may return an error or empty records","Unsupported record type requested — ignored or returns empty for that type","DNS resolution timeout — upstream resolver unreachable","Rate limiting or payment failure — x402 payment required or insufficient USDC balance"],"whenToPreferThis":"Use this endpoint when an AI agent needs structured DNS record data with enriched hints (SPF, MX presence, DNSSEC, CAA issuers, verification tokens) in a single call, especially in automated workflows that pay per-call via x402/USDC on Base. Prefer over raw dig/nslookup alternatives when you need machine-readable JSON output with pre-parsed hints rather than raw zone text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:39:37.935Z","isFirstParty":false,"canonicalSlug":"nightshift-labs-dns-lookup-api-85f94591"}