{"uid":"cap_OtDaijCzjNqiGAf7cVsl6","slug":"nightshift-dns-batch-lookup-a59dac37","name":"Nightshift DNS Batch Lookup","description":"DNS lookup for up to 12 domains in ONE paid call: A, AAAA, MX and NS by default (or the types you ask for), NXDOMAIN status, DNSSEC validation and SPF/verification hints per name, plus a summary of which names resolve, which are NXDOMAIN and which have MX. Resolved via DNS-over-HTTPS. names x types must be <= 48.","url":"https://nightshift-x402.nightshift-labs.workers.dev/v1/domain/dns-batch?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":["names"],"properties":{"names":{"type":"string","description":"comma list of 1-12 domain/host names"},"types":{"type":"string","description":"optional comma list of A,AAAA,CNAME,MX,TXT,NS,CAA,SOA (default A,AAAA,MX,NS)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":3,"types":["A","AAAA","MX","NS"],"results":[{"name":"github.com","status":"NOERROR","records":{"A":[{"ttl":60,"data":"140.82.112.3"}]}}],"summary":{"errors":[],"withMx":["github.com"],"nxdomain":["nonexistent-domain-xyz123.com"],"resolving":["github.com","example.com"]}}},"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_zDMzf7UER4x1ZxbqfRd77","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 lookups for up to 12 domains in a single paid call, returning A, AAAA, MX, NS records, NXDOMAIN status, DNSSEC validation, and SPF hints with a resolution summary.","exampleAgentPrompt":"Can you look up the A, MX, and NS DNS records for github.com, example.com, and cloudflare.com all at once, and tell me which ones actually resolve and which have mail servers?","exampleUseCases":[{"title":"Bulk domain portfolio DNS audit","prompt":"I have a list of 10 domains we own — github.com, example.com, cloudflare.com, stripe.com, vercel.com, netlify.com, supabase.com, railway.app, render.com, fly.io — can you check their A and MX records in one shot and tell me which ones have mail configured and which are NXDOMAIN?"},{"title":"Email deliverability pre-check","prompt":"Before we send a campaign, can you batch-check the MX and SPF/NS records for these 5 recipient domains — mailchimp.com, sendgrid.com, postmark.com, sparkpost.com, and mailgun.com — and flag which ones look properly configured for receiving email?"},{"title":"Competitor domain resolution monitoring","prompt":"Can you check whether these newly registered domains we're watching — fakebrand1.com, fakebrand2.net, fakebrand3.org — actually resolve with A records or are still NXDOMAIN, and let me know their DNSSEC status?"}],"resultDescription":"A JSON object containing the requested DNS record types resolved per domain (with TTLs and data values), each domain's status (NOERROR or NXDOMAIN), DNSSEC validation and SPF/verification hints, plus a summary listing which domains resolve, which are NXDOMAIN, and which have MX records configured.","failureModes":["More than 12 domain names supplied — returns an error","names × types product exceeds 48 — rejected before resolution","Invalid or malformed domain name in the list — that name may show as NXDOMAIN or error","Unsupported DNS record type requested — only A, AAAA, CNAME, MX, TXT, NS, CAA, SOA are valid","DNS-over-HTTPS upstream timeout — may return partial results or timeout error","Payment not completed via x402 — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to resolve DNS records for multiple domains (up to 12) in a single network round-trip and payment, particularly when you want NXDOMAIN detection, DNSSEC status, and SPF/MX hints alongside standard record lookups. It is more cost-efficient than calling a single-domain DNS endpoint repeatedly, and its built-in summary (resolving/NXDOMAIN/MX) saves post-processing. Prefer it over the single-domain sibling when you have a list of domains to audit in bulk.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:05:11.517Z","isFirstParty":false,"canonicalSlug":"nightshift-dns-batch-lookup-a59dac37"}