# DNS MX Records Lookup

> DNS MX Records Lookup is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Retrieves MX (Mail Exchange) DNS records for a given domain, returning the mail server routing information associated with that domain.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/network/dns-mx-records?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-mx-records-lookup-0967fdad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_30C0qLM_5Lt_Cff1mso73

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-records-lookup-0967fdad
```

Example prompt: What are the MX records for gmail.com? I want to see which mail servers handle email for that domain.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call MX record lookup without any API key setup. It's ideal for AI agents that need on-demand DNS MX resolution for email validation, deliverability checks, or infrastructure reconnaissance, and where the x402 micropayment model (USDC on Base) is already integrated. Prefer this over full DNS suites if you only need MX records and want zero-registration simplicity.

## Known failure modes

- Domain does not exist or has no MX records — returns empty record set or NXDOMAIN
- Invalid or malformed domain name input — may return an error or empty response
- Payment failure via x402 — 402 response if USDC payment is not completed
- Network or DNS resolver timeout — upstream DNS query may fail intermittently
- Rate limiting or worker-level errors on Cloudflare — 5xx responses possible

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with ok and paid flags, along with the MX record set for the queried domain — including each mail exchange hostname and its priority value as published in DNS.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-mx-records-lookup-0967fdad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
