# DNS TXT Record Lookup

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

Fetches DNS TXT records (including SPF, DKIM, DMARC, and domain verification strings) for a given domain using Google DNS-over-HTTPS

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/alpine_nebula/dns-txt-lookup
- 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-7db3c8bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dV4F97KGYAG9bWBx0T5s5

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-7db3c8bc -d '<json body>'
```

Example prompt: Can you look up the DNS TXT records for github.com? I want to see the SPF record and any domain verification strings.

## When to prefer this

Use this endpoint when you need to programmatically inspect DNS TXT records for a domain without requiring a local DNS resolver or command-line access. It is ideal for agents verifying email authentication setup (SPF, DKIM, DMARC), confirming domain ownership verification tokens, or auditing third-party integrations. Prefer this over raw DNS libraries when you need a simple pay-per-call, no-account-required API that leverages Google's reliable DNS-over-HTTPS infrastructure.

## Known failure modes

- Domain does not exist or has no TXT records — returns empty Answer or NXDOMAIN response
- Malformed domain input — may return an error or empty result
- Network/upstream failure from Google DNS-over-HTTPS — service unavailability
- Payment failure via x402 protocol — call rejected before execution
- Rate limiting or quota exceeded on the upstream DNS provider

## How this service works

DNS TXT Lookup - Call when you need a domain's TXT records - reading SPF, DMARC or a verification token before trusting a sender or completing a domain proof. Send the domain. Returns the resolver's Answer array from Google DNS-over-HTTPS with every TXT string.

## Output

The endpoint returns the DNS Answer field from Google DNS-over-HTTPS, containing all TXT records for the queried domain. This typically includes SPF records (e.g. 'v=spf1 include:...'), DKIM entries, DMARC policies, Google/Microsoft site verification strings, and any other TXT entries published for the domain.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "The instruction or prompt for the AI agent"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string",
       "description": "The agent's response text"
      }
     }
    }
   }
  }
 }
}
```

## More

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