# SSH SRV Record Lookup via Cloudflare DoH

> SSH 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-22).

Looks up SRV DNS records for the _ssh._tcp service of a given domain using Cloudflare DNS over HTTPS, returning priority, weight, port, and target host.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/ssh-tcp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ssh-srv-record-lookup-via-cloudflare-doh-66187a91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4IFlsNt7jeWRwmgQ-B9qm

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 ssh-srv-record-lookup-via-cloudflare-doh-66187a91
```

Example prompt: What host and port does example.com use for its SSH service? Look up the _ssh._tcp SRV DNS record for that domain.

## When to prefer this

Choose this endpoint when you need to discover the authoritative SSH service host and port for a domain via DNS SRV records, without guessing hostnames or hardcoding ports. It is ideal for automated infrastructure tooling, SSH connection setup scripts, or auditing workflows that need reliable service-location data from Cloudflare's DNS over HTTPS resolver. Prefer it over generic SRV lookup endpoints when you specifically need _ssh._tcp service discovery backed by Cloudflare's resolver.

## Known failure modes

- Domain has no _ssh._tcp SRV record — returns NXDOMAIN or empty answer section
- Domain does not exist — DNS resolution failure
- Malformed domain input — request rejected
- Cloudflare DoH upstream timeout or rate limit — transient error
- Domain has SRV records but SSH service is not configured — empty result

## How this service works

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

## Output

Returns the SRV DNS records for the _ssh._tcp service of the given domain, including one or more records each containing priority, weight, port number, and target hostname, along with TTL and DNS response code (e.g. NOERROR or NXDOMAIN), sourced from Cloudflare DNS over HTTPS.

## 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/ssh-srv-record-lookup-via-cloudflare-doh-66187a91/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)
