# STUN SRV Record Lookup (UDP)

> STUN SRV Record Lookup (UDP) 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-12).

Looks up SRV records for the _stun._udp service of a domain via Cloudflare DNS-over-HTTPS, returning priority, weight, port, and target host for STUN service discovery.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/stun-udp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stun-srv-record-lookup-udp-79e634af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_95u6xTuihK8Cw5AuVGy8p

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 stun-srv-record-lookup-udp-79e634af
```

Example prompt: Can you find the STUN server for example.com by looking up its _stun._udp SRV DNS records — I need the hostname, port, priority, and weight?

## When to prefer this

Use this endpoint when you need to programmatically discover a domain's STUN server configuration via DNS without guessing hostnames. Prefer this over manual DNS lookups or generic DNS tools when you specifically need _stun._udp SRV records for WebRTC, VoIP, or NAT traversal applications. It is ideal for agents automating infrastructure checks, network diagnostics, or service configuration validation.

## Known failure modes

- Domain has no _stun._udp SRV records — returns empty result set
- Invalid or non-existent domain — DNS NXDOMAIN response
- Cloudflare DoH upstream timeout or error
- Malformed domain input causing query failure
- Domain exists but STUN SRV record is misconfigured or points to unreachable host

## How this service works

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

## Output

Returns one or more SRV records for the _stun._udp.<domain> DNS name, each containing priority, weight, port number, and the target hostname of the STUN server. If no SRV records exist, returns an empty or negative response.

## 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/stun-srv-record-lookup-udp-79e634af/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)
