# TURNS TCP SRV Record Lookup via Cloudflare DoH

> TURNS TCP 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).

Resolves _turns._tcp SRV DNS records for a domain using Cloudflare DNS-over-HTTPS, returning priority, weight, port, and target host for the TURNS service.

## Facts

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

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 turns-tcp-srv-record-lookup-via-cloudflare-doh-2f279d41
```

Example prompt: What TURNS server does example.com use? Look up its _turns._tcp SRV record so I know the host and port to connect to.

## When to prefer this

Use this endpoint when you need to programmatically discover a domain's TURNS relay server location (host, port, priority, weight) via authoritative DNS SRV lookup, rather than guessing or hardcoding hostnames. Prefer it over generic DNS resolvers when you specifically need _turns._tcp SRV semantics resolved via Cloudflare DoH for consistency and privacy.

## Known failure modes

- Domain has no _turns._tcp SRV record — returns NXDOMAIN or empty answer section
- Malformed or missing domain input — request rejected with error
- Cloudflare DoH upstream unavailable — service may return 502/503
- Domain exists but TURNS service not configured — empty SRV answer
- Rate limiting or payment failure — 402 Payment Required

## How this service works

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

## Output

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

## 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/turns-tcp-srv-record-lookup-via-cloudflare-doh-2f279d41/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)
