SRV record format
Telnyx SRV records follow RFC 2782 DNS SRV specification:Parameters
| Parameter | Value | Description |
|---|---|---|
| Service | _sip | SIP service identifier |
| Protocol | _udp or _tcp | Transport protocol (UDP recommended) |
| Domain | User’s domain | The domain being configured |
| TTL | 3600 | Cache duration in seconds |
| Class | IN | Internet class (standard) |
| Priority | 10 | Lower values preferred (use same value for all Telnyx entries) |
| Weight | 10 | Load distribution ratio (equal weight for balanced distribution) |
| Port | 5060 or 5061 | 5060 for UDP/TCP, 5061 for TLS |
| Target | sip.telnyx.com. | Telnyx regional FQDN (note trailing dot) |
Regional FQDNs
Configure SRV records to point to the Telnyx region closest to the user’s infrastructure:| Region | FQDN | Resolves to IPs |
|---|---|---|
| US | sip.telnyx.com | 192.76.120.10, 64.16.250.10 |
| Europe | sip-eu.telnyx.com | 5.172.39.10, 5.172.39.25 |
| Canada | sip-ca.telnyx.com | 193.108.220.10, 193.108.220.25 |
| Australia | sip-au.telnyx.com | 193.108.104.10, 193.108.104.25 |
Configuration examples
Basic configuration
Single SRV record pointing to US region:TLS transport
For encrypted SIP signaling on port 5061:Multi-region redundancy
Route to US as primary, EU as secondary:10 (US) is preferred over priority 20 (EU).
Benefits over A records
| Feature | SRV Records | A Records |
|---|---|---|
| Automatic IP failover | Yes (resolves to multiple IPs) | No (manual configuration required) |
| Port specification | Included in record | Hardcoded in PBX config |
| Load balancing | Weight-based distribution | Requires DNS round-robin |
| Protocol awareness | Transport specified in record | Assumed by application |
| Regional routing | FQDN-based | IP-based |
Verification
Verify the user’s SRV record configuration:DNS provider configuration
Most DNS providers support SRV records through their control panel or API. Common DNS providers:- Route 53 (AWS): Record type “SRV”, value format
10 10 5060 sip.telnyx.com - Cloudflare: Record type “SRV”, configure service, protocol, priority, weight, port, target separately
- Google Cloud DNS: Use
gcloud dns record-sets createwith--type=SRV
Failover behavior
SRV records work with Telnyx automatic failover:- DNS query resolves
sip.telnyx.comto both IP1 and IP2 - SIP INVITE sent to IP1 (primary)
- On timeout or error, retry to IP2 (secondary)
- If all IPs fail, attempt next priority SRV target (if configured)
Troubleshooting
SRV record not resolving:- Verify trailing dot on target FQDN (
sip.telnyx.com.) - Check TTL has expired if you recently updated
- Confirm DNS propagation:
dig @8.8.8.8 _sip._udp.example.com SRV
- Some PBX systems require explicit SRV lookup enablement
- Configure PBX to use domain (
example.com) not IP address - Check PBX logs for DNS query behavior
- Verify equal weight values for balanced distribution
- Some SIP stacks cache first resolved IP
- Consider implementing client-side round-robin