# DKIM Selector key2 Lookup

> DKIM Selector key2 Lookup is a paid API for AI agents from dns.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Looks up and parses the DKIM public key for the 'key2' selector of a given domain via Cloudflare DNS-over-HTTPS

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/dkim/key2?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dkim-selector-key2-lookup-bf2b7d00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oChPUxYJ9Y1AjGx-AIHJ6

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-selector-key2-lookup-bf2b7d00
```

Example prompt: Can you check the DKIM key2 selector for example.com and tell me if it's valid, what key type and length it uses, and whether it's been revoked?

## When to prefer this

Choose this endpoint when you specifically need to inspect the 'key2' DKIM selector for a domain — common with services like SendGrid, Mailchimp, or custom setups that use key2 as their selector name. It provides richer parsed output (key type, length, revocation, testing flag) than a raw DNS TXT lookup, making it ideal for email deliverability audits, security reviews, or automated DKIM validation workflows. Use sibling endpoints (e.g. dkim-selector-zohomail, dkim-selector-ac) when the selector name differs.

## Known failure modes

- Domain does not have a key2._domainkey TXT record — returns not found or NXDOMAIN
- Malformed TXT record that cannot be parsed — may return partial data or parse error
- Network timeout reaching Cloudflare DoH — returns service unavailable
- Empty p= field indicates key is intentionally revoked — returned as a revoked status
- Domain input missing or invalid — returns validation error
- Cloudflare DoH rate limiting — returns 429 or equivalent error

## How this service works

DKIM public key for selector "key2" of a domain: looks up key2._domainkey.<domain> (TXT, Cloudflare DoH) and parses v=, k=, key type, public-key length, testing flag and whether the key is revoked (empty p=). Confirms that mail signed with the key2 selector will verify. $0.01 per lookup.

## Output

Returns parsed details from the key2._domainkey.<domain> TXT record including: DKIM version (v=), key type (k=, e.g. rsa or ed25519), public key content and bit length, whether the testing flag (t=y) is set, and whether the key is revoked (empty p= field). Also confirms whether mail signed with the key2 selector will successfully verify.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dkim-selector-key2-lookup-bf2b7d00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.intel.rallylive.ca](https://www.zero.xyz/host/dns.intel.rallylive.ca/llms.txt)
