# DKIM Selector hs2 Public Key Lookup

> DKIM Selector hs2 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 'hs2' selector of a given domain via Cloudflare DoH, returning key type, length, testing flag, and revocation status.

## Facts

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

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-hs2-public-key-lookup-7877e93f
```

Example prompt: Can you check if the DKIM hs2 selector is properly configured for example.com — I need to know the key type, key length, and whether it's been revoked?

## When to prefer this

Choose this endpoint when you specifically need to inspect the 'hs2' DKIM selector for a domain — for example when auditing email authentication configuration, verifying key rotation, or diagnosing deliverability issues tied to the hs2 selector. Prefer it over generic DNS TXT lookups because it pre-parses DKIM-specific fields (key type, length, revocation status, testing flag) rather than returning raw TXT data.

## Known failure modes

- Domain has no hs2._domainkey TXT record — returns not found or empty result
- DKIM key is revoked (empty p=) — flagged in response but not an API error
- DNS resolution failure via Cloudflare DoH — may return timeout or upstream error
- Malformed TXT record that cannot be parsed into standard DKIM fields
- Invalid or unresolvable domain name supplied as input

## How this service works

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

## Output

Returns the parsed DKIM TXT record for hs2._domainkey.<domain>, including the protocol version (v=), key type (k=), public key length in bits, whether the key is in testing mode, and whether the key is revoked (empty p= field). Also confirms whether mail signed with the hs2 selector can be expected to verify successfully.

## 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-hs2-public-key-lookup-7877e93f/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)
