# dns-mx-via-nextdns

> dns-mx-via-nextdns is a paid API for AI agents from dns.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Retrieves MX (mail exchanger) DNS records for a domain via NextDNS DNS-over-HTTPS, returning records, TTL, response code, DNSSEC validation status, and resolver answer time.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/mx/via/nextdns?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-mx-via-nextdns-fbc35624
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x1tIG1VLTFwrKEz-u-qB0

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-mx-via-nextdns-fbc35624
```

Example prompt: What MX records does NextDNS return for gmail.com, and did it validate DNSSEC? I want to see the full answer including TTL and response code.

## When to prefer this

Choose this endpoint when you specifically need to see how NextDNS resolves MX records — useful for comparing resolver behavior, detecting DNS filtering by NextDNS, diagnosing email delivery issues as seen from the NextDNS vantage point, or checking DNSSEC validation status. Prefer this over generic DNS tools when resolver-specific answers or resolver latency comparisons matter.

## Known failure modes

- NXDOMAIN returned if domain does not exist
- SERVFAIL if NextDNS cannot resolve the domain
- Empty MX record set if domain has no mail exchangers configured
- NextDNS may filter or block certain domains, returning NOERROR with no records
- Payment failure if USDC balance is insufficient for the $0.01 fee
- Network timeout if NextDNS is temporarily unreachable

## How this service works

MX records for a domain as answered by NextDNS (DNS over HTTPS): the records, TTL, response code (NOERROR/NXDOMAIN/SERVFAIL), whether the resolver validated DNSSEC, and the resolver's answer time. Compare resolvers to spot propagation lag, filtering or split-horizon answers. $0.01 per lookup.

## Output

Returns MX records (priority and mail server hostname), TTL, DNS response code (NOERROR, NXDOMAIN, or SERVFAIL), whether DNSSEC was validated by the NextDNS resolver, and the resolver's answer latency in milliseconds.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-mx-via-nextdns-fbc35624/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.intel.rallylive.ca](https://www.zero.xyz/host/dns.intel.rallylive.ca/llms.txt)
