# Mail Security DNS Lookup (MX, SPF, DMARC)

> Mail Security DNS Lookup (MX, SPF, DMARC) is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Checks a domain's mail security posture by verifying presence of MX records, SPF policy, and DMARC policy.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/domain/mail-security
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mail-security-dns-lookup-mx-spf-dmarc-0dcbc255
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VF9Cv58OQEiTnIGd25Zsx

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 mail-security-dns-lookup-mx-spf-dmarc-0dcbc255 -d '<json body>'
```

Example prompt: Can you check whether acme.com has MX, SPF, and DMARC records set up so I know if their email is properly secured?

## When to prefer this

Use this endpoint when you need a quick, structured boolean check on a domain's mail security DNS configuration (MX, SPF, DMARC presence) without needing full record content. Prefer this over raw DNS tools when you want a normalized JSON response consumable by an agent pipeline at a low per-call cost.

## Known failure modes

- Invalid or malformed domain input returns an error
- Non-existent domain may return all false flags rather than an error
- DNS resolution timeouts may cause failures for slow-responding nameservers
- Payment failure via x402 prevents the lookup from executing

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

Returns a JSON object with the queried domain and boolean flags indicating whether MX records, SPF records, and DMARC records are present for that domain.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "domain": "example.com",
   "has_mx": true,
   "spf_present": true,
   "dmarc_present": true
  },
  "meta": {
   "engine": "domain-enrich"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mail-security-dns-lookup-mx-spf-dmarc-0dcbc255/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
