# Swift Bot Labs DNS MX Record Lookup

> Swift Bot Labs DNS MX Record Lookup is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Looks up MX (mail exchanger) DNS records for a domain and returns mail server hosts, priorities, TTLs, inferred email provider, and whether the domain accepts email.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/dns/mx?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-dns-mx-record-lookup-20ee2bc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tnHNtDxm0qg7yPpEZOc5M

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 swift-bot-labs-dns-mx-record-lookup-20ee2bc7
```

Example prompt: Look up the MX records for github.com and tell me what email provider they use and whether the domain actually accepts mail.

## When to prefer this

Choose this endpoint when you need a lightweight, no-auth, pay-per-call MX record lookup with automatic email provider detection and null MX identification — ideal for agents doing email validation, lead enrichment, or deliverability checks without setting up a full DNS library or managing API keys. Prefer it over general DNS tools when the specific goal is understanding email routing for a domain.

## Known failure modes

- Domain does not exist — returns empty MX array or DNS NXDOMAIN error
- Domain has no MX records configured — acceptsMail will be false
- Transient DNS resolution failure — may return error or empty result
- Invalid domain format in query parameter — likely returns validation error
- Network timeout on DNS upstream — may result in delayed or failed response

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with the domain queried, an array of MX records (each with host, priority, and TTL), a boolean indicating whether the domain accepts mail, a boolean for null MX, and an inferred human-readable email provider name (e.g. 'Google Workspace', 'Microsoft 365').

## 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",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain, e.g. example.com"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "dns-mx",
  "result": {
   "mx": [
    {
     "ttl": 3600,
     "host": "aspmx.l.google.com",
     "priority": 1
    }
   ],
   "domain": "github.com",
   "nullMx": false,
   "provider": "Google Workspace",
   "acceptsMail": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-dns-mx-record-lookup-20ee2bc7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
