# HKP SRV Record Lookup via Cloudflare DoH

> HKP SRV Record Lookup via Cloudflare DoH 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).

Resolves SRV records for the _hkp._tcp.<domain> service discovery endpoint, returning priority, weight, port, and target host for a domain's HKP (HTTP Keyserver Protocol) service.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/hkp-tcp?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/hkp-srv-record-lookup-via-cloudflare-doh-05f60b05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__lTp8fpqVNV-lZm5OHZld

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 hkp-srv-record-lookup-via-cloudflare-doh-05f60b05
```

Example prompt: Can you look up the HKP service SRV record for keys.example.com so I can find out which host and port their OpenPGP keyserver is running on?

## When to prefer this

Choose this endpoint when you need to discover the HKP (HTTP Keyserver Protocol) service location for a domain without hardcoding hostnames or ports. Ideal for agents building OpenPGP key-fetching workflows, email encryption clients, or any application that needs to dynamically resolve a domain's keyserver endpoint via standard DNS SRV records.

## Known failure modes

- No SRV record exists for the domain — returns empty or NXDOMAIN response
- Domain does not exist — DNS resolution fails entirely
- Domain provided without required query parameter — returns validation error
- Cloudflare DoH upstream timeout or outage — may return error or stale result
- Malformed domain input — may return error response

## How this service works

HKP service discovery (_hkp._tcp.<domain>): SRV records with priority, weight, port and target host, from Cloudflare DoH. Tells a client where the domain's hkp service lives without guessing hosts. $0.01 per lookup.

## Output

Returns SRV record data for the _hkp._tcp.<domain> DNS query, including one or more records each with: priority (lower = preferred), weight (load-balancing hint), port number, and target hostname where the HKP service can be reached. Data is sourced from Cloudflare's DNS over HTTPS resolver.

## 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/hkp-srv-record-lookup-via-cloudflare-doh-05f60b05/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)
