# DNS TXT Record Lookup (x402atlas)

> DNS TXT Record Lookup (x402atlas) is a paid API for AI agents from dns.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Resolves DNS TXT records for a hostname, returning SPF, DKIM, DMARC, and domain-verification strings as clean JSON.

## Facts

- Endpoint: GET https://dns.use.x402atlas.com/txt
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-txt-record-lookup-x402atlas-b9d80699
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6MbbkB-1C9Hwz6i_n18SY

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-txt-record-lookup-x402atlas-b9d80699
```

Example prompt: Can you pull all the DNS TXT records for example.com so I can check whether SPF, DKIM, and DMARC are configured correctly?

## When to prefer this

Use this endpoint when you need to inspect or validate DNS TXT records for email authentication (SPF, DKIM, DMARC) or domain ownership verification. Prefer it over a general DNS resolver when you specifically need TXT records returned as structured JSON ready for agent consumption, and want per-query micropayment billing instead of a subscription.

## Known failure modes

- Domain does not exist — returns empty TXT record list or DNS NXDOMAIN error
- No TXT records configured for the hostname — returns empty array
- Invalid hostname format — returns validation error
- DNS resolution timeout — returns timeout or upstream error
- Rate limiting or payment failure — returns 402 or 429 status

## How this service works

DNS TXT record lookup — a domain's TXT records as a clean JSON list: SPF, DKIM and DMARC policy strings plus site-verification and domain-ownership tokens, for email-authentication and domain-verification checks.

## Output

A clean JSON object containing all DNS TXT records associated with the queried hostname, including SPF policy strings, DKIM public key records, DMARC policy entries, and any domain-ownership verification tokens.

## 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",
     "required": [
      "host"
     ],
     "properties": {
      "host": {
       "type": "string",
       "maxLength": 253,
       "minLength": 1,
       "description": "Bare hostname to resolve (not an IP literal, not localhost, not under a reserved suffix like .local/.internal)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "host",
      "records",
      "queried_at"
     ],
     "properties": {
      "host": {
       "type": "string",
       "description": "The queried hostname"
      },
      "records": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "description": "Raw, unparsed TXT record strings (SPF, DKIM, DMARC, verification tokens)"
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "UTC timestamp of the lookup"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example.com",
  "records": [
   "v=spf1 -all"
  ],
  "queried_at": "2026-06-05T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-txt-record-lookup-x402atlas-b9d80699/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.use.x402atlas.com](https://www.zero.xyz/host/dns.use.x402atlas.com/llms.txt)
