# AgentShelf DNS SRV TURN Lookup

> AgentShelf DNS SRV TURN Lookup is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Resolves SRV records at _turn._tcp.{hostname} to retrieve TURN server connection details for a given registrable domain.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/dns-srv-turn?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-dns-srv-turn-lookup-92e8eac7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kkjr-ScGrLaMOzE8kqz4G

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 agentshelf-dns-srv-turn-lookup-92e8eac7 -d '<json body>'
```

Example prompt: Look up the TURN server SRV record for example.com — I need the host, port, priority, and weight so I can configure WebRTC peer connections.

## When to prefer this

Use this endpoint when you need to programmatically discover the TURN server for a given domain via DNS SRV records, particularly in WebRTC or media relay contexts. Prefer the free sandbox endpoint (/v1/sandbox/dns-srv-turn) for testing; use this paid endpoint for production lookups where reliability matters.

## Known failure modes

- No SRV record found at _turn._tcp.{hostname} — domain may not publish TURN via DNS
- Invalid or malformed hostname input — rejected before DNS query
- DNS resolution timeout or upstream failure
- Domain exists but has no TURN SRV record configured
- Payment not settled — x402 payment required before response

## How this service works

Call when an agent needs SRV records at _turn._tcp.{hostname} for TURN. The caller sends the registrable domain, not the underscored name. Exact $0.005 USDC. Prefer unpaid POST /v1/sandbox/dns-srv-turn first.

## Output

Returns the SRV record fields found at _turn._tcp.{hostname}, including priority, weight, port, and target hostname of the TURN server. If no record exists, returns an appropriate empty or error response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hostname": {
   "type": "string",
   "examples": [
    "example.com"
   ],
   "maxLength": 253,
   "minLength": 1,
   "description": "Public DNS hostname such as example.com. Not a URL, not an IP literal, and not a private name."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-dns-srv-turn-lookup-92e8eac7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
