# HTTPS SRV Record Lookup via Cloudflare DoH

> HTTPS 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).

Returns SRV records for the _https._tcp.<domain> service discovery entry, providing priority, weight, port, and target host for HTTPS services on a domain.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/https-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/https-srv-record-lookup-via-cloudflare-doh-f1068909
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QZdBK1V9L5A-laYRQWJvj

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 https-srv-record-lookup-via-cloudflare-doh-f1068909
```

Example prompt: Can you look up the _https._tcp SRV DNS record for example.com so I can find out what host and port its HTTPS service is running on?

## When to prefer this

Use this endpoint when you need to programmatically discover where a domain's HTTPS service is hosted (host, port, priority, weight) via the standard SRV DNS mechanism, without guessing subdomains or hardcoding ports. Prefer this over generic DNS A/AAAA lookups when the service uses SRV-based discovery, such as in federated protocols, SVCB/HTTPS record-adjacent setups, or microservice infrastructure. Backed by Cloudflare DoH for reliability and privacy.

## Known failure modes

- Domain has no _https._tcp SRV record — returns empty result set
- Domain does not exist — NXDOMAIN error
- Cloudflare DoH upstream timeout or unreachable — service error
- Invalid domain name input — request validation failure
- Rate limiting or payment failure — 402 or 429 response

## How this service works

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

## Output

Returns one or more SRV DNS records for _https._tcp.<domain>, each containing: priority (lower = preferred), weight (load-balancing hint), port number, and target hostname — sourced via 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/https-srv-record-lookup-via-cloudflare-doh-f1068909/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)
