# DNS & Domain Health Check API

> DNS & Domain Health Check API is a paid API for AI agents from ai-policy-kit.moneymaker-ai.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-19).

Performs a comprehensive DNS lookup and domain health check for a given hostname, returning DNS records, email security configurations, HTTPS status, and common issues.

## Facts

- Endpoint: GET https://ai-policy-kit.moneymaker-ai.workers.dev/api/domain-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-domain-health-check-api-f4554b2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4DubfhgVQpc8bS-8a_uYG

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 dns-domain-health-check-api-f4554b2d
```

Example prompt: Can you do a full DNS and domain health check on example.com — I want to see the A records, MX records, SPF, DMARC, HTTPS reachability, and any issues flagged?

## When to prefer this

Choose this endpoint when you need a comprehensive, multi-record DNS snapshot of a domain in a single call, especially when you also want email security analysis (SPF/DMARC verdict) and HTTPS reachability in one response. Prefer this over raw DNS resolvers when you want pre-interpreted issue flags and human-readable verdicts rather than raw wire-format records.

## Known failure modes

- Domain does not exist — dns_status returns NXDOMAIN and exists is false
- Invalid domain input — malformed hostname may cause a bad request or empty response
- HTTPS check timeout — reachable may be false if the server is slow or blocking
- Resolver unavailable — upstream DNS failure may yield partial or empty results
- Rate limiting — repeated calls without payment may be throttled

## How this service works

Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.

## Output

A JSON object containing A, AAAA, MX, NS, TXT, CAA records; SOA string; SPF record with verdict and analysis; DMARC policy details; HTTPS reachability and server info; DNSSEC validation status; MTA-STS support; a list of detected issues; and the resolver used.

## 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": {
      "https": {
       "enum": [
        "1",
        "0"
       ],
       "type": "string",
       "description": "optional; 0 skips the HTTPS GET"
      },
      "domain": {
       "type": "string",
       "description": "hostname or URL, e.g. example.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": [
   "172.66.147.243",
   "104.20.23.154"
  ],
  "mx": [
   {
    "host": "",
    "priority": 0
   }
  ],
  "ns": [
   "hera.ns.cloudflare.com",
   "elliott.ns.cloudflare.com"
  ],
  "caa": [],
  "soa": "elliott.ns.cloudflare.com. dns.cloudflare.com. 2416374680 10000 2400 604800 1800",
  "spf": {
   "record": "v=spf1 -all",
   "present": true,
   "verdict": "strict (-all)",
   "includes": [],
   "all_qualifier": "-",
   "lookups_estimate": 0,
   "multiple_records": false
  },
  "txt": [
   "v=spf1 -all",
   "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9"
  ],
  "aaaa": [
   "2606:4700:10::ac42:93f3",
   "2606:4700:10::6814:179a"
  ],
  "dmarc": {
   "pct": 100,
   "rua": null,
   "policy": "reject",
   "record": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s",
   "present": true,
   "multiple_records": false,
   "subdomain_policy": "reject"
  },
  "https": {
   "hsts": null,
   "server": "cloudflare",
   "status": 200,
   "final_url": "https://example.com/",
   "reachable": true
  },
  "domain": "example.com",
  "exists": true,
  "issues": [
   "no CAA record (any CA may issue certificates)",
   "no HSTS header on the HTTPS answer"
  ],
  "mta_sts": false,
  "null_mx": true,
  "resolver": "cloudflare-dns.com",
  "dns_status": "NOERROR",
  "verifications": [],
  "dnssec_validated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-domain-health-check-api-f4554b2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-policy-kit.moneymaker-ai.workers.dev](https://www.zero.xyz/host/ai-policy-kit.moneymaker-ai.workers.dev/llms.txt)
