# DNS Lookup via Public Resolvers (A, AAAA, MX, TXT, NS, CNAME, CAA, SOA, SRV)

> DNS Lookup via Public Resolvers (A, AAAA, MX, TXT, NS, CNAME, CAA, SOA, SRV) is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Performs DNS record lookups for a given domain across multiple record types (A, AAAA, MX, TXT, NS, CNAME, CAA, SOA, SRV) using public resolvers

## Facts

- Endpoint: POST https://twin.unykorn.org/web/dns?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-lookup-via-public-resolvers-a-aaaa-mx-txt-ns-cname-caa-soa-srv-3db94480
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I6dSN4-ujcALnQP09Ie2U

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-lookup-via-public-resolvers-a-aaaa-mx-txt-ns-cname-caa-soa-srv-3db94480 -d '<json body>'
```

Example prompt: Can you look up the MX and TXT records for example.com so I can check its mail server configuration and SPF policy?

## When to prefer this

Choose this endpoint when you need programmatic DNS record resolution without running your own resolver infrastructure, especially when you need multiple record types in a single call. Suitable for lightweight agents performing email deliverability checks, domain validation, infrastructure audits, or DNS propagation verification. At $0.001 per call it is cost-effective for occasional lookups. Prefer it over full DNS libraries when your runtime environment does not support raw DNS queries.

## Known failure modes

- Domain does not exist (NXDOMAIN) — returns empty or error response
- Invalid domain name format — validation error
- Unsupported or misspelled record type in types parameter — may be ignored or error
- Resolver timeout if upstream public DNS is slow — request may fail
- No records of the requested type exist — returns empty result set

## How this service works

DNS lookup: A, AAAA, MX, TXT, NS, CNAME, CAA, SOA, SRV via public resolvers — Genesis402 / UnyKorn Operator Network

## Output

Returns DNS record data for the queried domain, organized by record type. Each record type (A, AAAA, MX, TXT, NS, CNAME, CAA, SOA, SRV) returns the relevant values such as IP addresses, hostnames, priorities, and raw text strings as returned by public resolvers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "types": {
     "type": "string",
     "description": "optional comma list, e.g. MX,TXT"
    },
    "domain": {
     "type": "string",
     "description": "required"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "dns-lookup",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "sources": [
   {
    "ok": true,
    "name": "<source>"
   }
  ],
  "limitations": "<text>",
  "generated_at": "<iso time>",
  "evidence_hash": "sha256:<64hex>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-lookup-via-public-resolvers-a-aaaa-mx-txt-ns-cname-caa-soa-srv-3db94480/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
