# MX & DNS Lookup with Email Provider Detection

> MX & DNS Lookup with Email Provider Detection is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-14).

Performs DNS lookups for MX, A, AAAA, NS, TXT, SOA records and detects email providers (Google, Microsoft, etc.), SPF, and DMARC configurations for a given domain.

## Facts

- Endpoint: GET https://api.strale.io/x402/mx-lookup
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-c1cf74dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EOjYSq1NgxnikBnYEgQkW

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 api-strale-io-c1cf74dd
```

Example prompt: Can you look up all the DNS records for github.com — I want to know which email provider they use, what their MX records are, and whether they have SPF and DMARC configured?

## When to prefer this

Use this endpoint when you need comprehensive DNS record resolution combined with intelligent email provider detection and email security posture analysis (SPF/DMARC) in a single call, rather than querying raw DNS resolvers separately.

## Known failure modes

- Domain does not exist or is not resolvable — empty or error response
- Invalid domain format provided — input validation error
- DNS timeout or upstream resolver failure — service error
- Domain exists but has no MX records — empty MX result with other records present

## How this service works

DNS lookup for MX, A, AAAA, NS, TXT, SOA records. Detects email provider (Google, Microsoft, etc.), SPF, and DMARC records.

## Output

Returns structured DNS records including MX, A, AAAA, NS, TXT, and SOA entries, along with detected email provider (e.g. Google Workspace, Microsoft 365), parsed SPF record details, and DMARC policy configuration.

## Example request

```json
{
 "domain": "github.com"
}
```

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "domain": {
  "type": "string"
 },
 "has_spf": {
  "type": "boolean"
 },
 "has_dmarc": {
  "type": "boolean"
 },
 "mx_records": {
  "type": "array"
 },
 "email_provider": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-c1cf74dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
