# TURN UDP SRV Record Lookup via Cloudflare DoH

> TURN UDP 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 _turn._udp SRV DNS records for a domain via Cloudflare DoH, returning priority, weight, port, and target host for the domain's TURN service.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/turn-udp?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/turn-udp-srv-record-lookup-via-cloudflare-doh-aec638a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rT7gfWUGNFQHng2MmAC-v

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 turn-udp-srv-record-lookup-via-cloudflare-doh-aec638a0
```

Example prompt: Look up the TURN UDP SRV record for example.com using Cloudflare DoH and tell me the host, port, priority, and weight of its TURN service.

## When to prefer this

Use this endpoint when you need to programmatically discover a domain's TURN relay server over UDP via authoritative SRV DNS records, especially for WebRTC, VoIP, or NAT traversal applications. Prefer this over manual DNS tools when you want a lightweight, pay-per-use API backed by Cloudflare's reliable DoH infrastructure.

## Known failure modes

- Domain has no _turn._udp SRV record — returns empty answer set or NXDOMAIN
- Domain does not exist — NXDOMAIN response
- Cloudflare DoH upstream timeout or error — service may return 5xx
- Missing or malformed domain input — 400 bad request
- Payment not fulfilled — 402 response before lookup is executed

## How this service works

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

## Output

Returns the _turn._udp SRV DNS records for the queried domain as resolved by Cloudflare DoH (1.1.1.1), including each record's priority, weight, port number, and target hostname, along with the TTL and DNS response code.

## 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/turn-udp-srv-record-lookup-via-cloudflare-doh-aec638a0/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)
