# Nightshift DNS Batch Lookup

> Nightshift DNS Batch Lookup is a paid API for AI agents from nightshift-x402.nightshift-labs.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

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.

## Facts

- Endpoint: GET https://nightshift-x402.nightshift-labs.workers.dev/v1/domain/dns-batch?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-dns-batch-lookup-a59dac37
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OtDaijCzjNqiGAf7cVsl6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nightshift-dns-batch-lookup-a59dac37
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-dns-batch-lookup-a59dac37/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nightshift-x402.nightshift-labs.workers.dev](https://www.zero.xyz/host/nightshift-x402.nightshift-labs.workers.dev/llms.txt)
