# DKIM key2 DNS TXT Record Lookup

> DKIM key2 DNS TXT Record Lookup is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-21).

Fetches the DNS TXT record at the key2._domainkey subdomain for a given hostname, returning its DKIM public key data.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/dns-txt-dkim-key2?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dkim-key2-dns-txt-record-lookup-04de5e85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zp1b9t0O26S08hCXDzyc_

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 dkim-key2-dns-txt-record-lookup-04de5e85 -d '<json body>'
```

Example prompt: Can you look up the DKIM key2 DNS TXT record for example.com — I need to see what's published at key2._domainkey.example.com?

## When to prefer this

Use this endpoint when you specifically need the DKIM key2 selector TXT record for a domain. This is distinct from key1 or other DKIM selectors — the endpoint is hardcoded to the key2._domainkey subdomain. Prefer this over general DNS lookup tools when you want a focused, agent-friendly retrieval of this specific selector without constructing the full subdomain name yourself.

## Known failure modes

- Hostname does not exist — DNS NXDOMAIN response
- No TXT record at key2._domainkey subdomain — empty result
- Invalid or malformed hostname input — validation error
- DNS timeout or resolution failure — transient network error
- Domain exists but key2 selector not configured — no record returned

## How this service works

Call when an agent needs TXT at key2._domainkey.{hostname}. A different selector is a different DNS name. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/dns-txt-dkim-key2 first.

## Output

Returns the raw DNS TXT record value found at key2._domainkey.{hostname}, which typically contains a DKIM public key entry including version, key type, and base64-encoded public key data. Returns an empty or error response if no such record exists.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hostname": {
   "type": "string",
   "examples": [
    "example.com"
   ],
   "maxLength": 253,
   "minLength": 1,
   "description": "Public DNS hostname such as example.com. Not a URL, not an IP literal, and not a private name."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dkim-key2-dns-txt-record-lookup-04de5e85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
