# Domain Nameserver Health Check

> Domain Nameserver Health Check is a paid API for AI agents from domain-dns.x402tookit.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-26).

Returns nameserver count, provider diversity, individual resolution status, and SOA serial for a given domain.

## Facts

- Endpoint: GET https://domain-dns.x402tookit.com/ns-health?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domain-nameserver-health-check-59fd7eeb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w01hK4wVzzz0F6gLEW7tu

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 domain-nameserver-health-check-59fd7eeb
```

Example prompt: Can you check the nameserver health of cloudflare.com — I want to know how many nameservers it has, whether they all resolve, which DNS providers are involved, and what the SOA serial looks like?

## When to prefer this

Choose this endpoint when you need a focused, structured health check on a domain's nameserver layer specifically — covering resolution, provider diversity, and SOA data — rather than a full multi-record DNS dump. It is ideal for infrastructure audits, DNS redundancy checks, outage diagnosis, and monitoring workflows where nameserver reliability is the primary concern.

## Known failure modes

- Domain does not exist — nameservers list may be empty and verdict reflects non-existence
- DNS resolution timeout — some nameservers marked as not resolving due to transient network issues
- Invalid domain input — malformed domain string causes error response
- All nameservers fail to resolve — degraded flag set to true with reasons listed
- SOA record unavailable — soa field returned as null

## How this service works

Nameserver health of a domain: count, provider diversity, whether each nameserver resolves, and the SOA serial.

## Output

Returns a structured report including the domain name, list of nameservers with per-nameserver resolution status and detected provider, the set of distinct DNS providers (provider diversity), an overall health verdict, a degraded flag, reasons for any issues, and the SOA record with fields including serial, primary NS, contact, refresh, retry, expire, and minimum TTL. Also includes a summary string, timestamp, and optional disclaimer.

## 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": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain name, e.g. example.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "soa": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "retry": {
         "type": [
          "null",
          "number"
         ]
        },
        "expire": {
         "type": [
          "null",
          "number"
         ]
        },
        "serial": {
         "type": [
          "null",
          "number"
         ]
        },
        "contact": {
         "type": [
          "null",
          "string"
         ]
        },
        "refresh": {
         "type": [
          "null",
          "number"
         ]
        },
        "primaryNs": {
         "type": [
          "null",
          "string"
         ]
        },
        "minimumTtl": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "domain": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "providers": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "sourceUrl": {
       "type": [
        "null",
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domain-nameserver-health-check-59fd7eeb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from domain-dns.x402tookit.com](https://www.zero.xyz/host/domain-dns.x402tookit.com/llms.txt)
