# DKIM Selector2 Public Key Lookup

> DKIM Selector2 Public Key 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 'selector2' selector of a given domain via Cloudflare DoH, returning key type, length, testing flags, and revocation status.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/dkim/selector2?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-selector2-public-key-lookup-fafcdcf4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ho2lCJrw0ZQ9WVTyURQD7

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-selector2-public-key-lookup-fafcdcf4
```

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

## When to prefer this

Use this endpoint when you specifically need to inspect the 'selector2' DKIM selector, which is commonly used by Microsoft 365 / Office 365 as their second rotating DKIM selector. Prefer this over generic DNS TXT lookups when you want structured, pre-parsed DKIM fields (key type, length, testing flag, revocation) rather than raw DNS output. If you need a different selector (e.g. mailerlite, braze, google), sibling endpoints exist for those.

## Known failure modes

- Domain has no selector2._domainkey TXT record — returns not found or empty result
- DKIM record exists but is malformed and cannot be parsed
- DNS resolution failure via Cloudflare DoH — network or timeout error
- Domain name is invalid or not resolvable
- Key is revoked (empty p=) — returned as a flag but lookup still succeeds

## How this service works

DKIM public key for selector "selector2" of a domain: looks up selector2._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 selector2 selector will verify. $0.01 per lookup.

## Output

Returns parsed DKIM record fields for selector2._domainkey.<domain>: DKIM version (v=), key type (k= e.g. rsa or ed25519), public key length in bits, whether the domain is in testing mode (t=y), and whether the key is revoked (empty p= field). Confirms mail signed with the selector2 selector will pass DKIM verification.

## 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-selector2-public-key-lookup-fafcdcf4/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)
