Missing underscores
The service and protocol labels must start with an underscore, such as _sip._tcp. Without them clients never find the record.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
An SRV (service) record tells a client which hostname and port provide a named service for a domain, with priority and weight fields for failover and load sharing. Its format is _service._proto.name TTL IN SRV priority weight port target, as defined in RFC 2782.
| Field | Example | Meaning |
|---|---|---|
| _service | _sip | Symbolic service name, prefixed with an underscore |
| _proto | _tcp | Transport protocol, usually _tcp or _udp |
| Priority | 10 | Lower is tried first; a client must try the lowest priority it can reach |
| Weight | 60 | Share of traffic among targets with the same priority; use 0 when no choice is needed |
| Port | 5060 | Port on the target host, 16-bit number |
| Target | sip1.example.com. | Host that provides the service; needs A/AAAA records, not a CNAME |
_sip._tcp.example.com. 3600 IN SRV 10 60 5060 sip1.example.com.
_sip._tcp.example.com. 3600 IN SRV 10 20 5060 sip2.example.com.
_sip._tcp.example.com. 3600 IN SRV 20 0 5060 backup.example.com.
; target "." means the service is not available here
_ldap._tcp.example.com. 3600 IN SRV 0 0 0 .RFC 2782 explains that a lone SRV record with target "." means the service is decidedly not available at that domain.
Service name, protocol, priority, weight, port and target are vendor-specific. Providers that rely on SRV publish theirs in their setup guides.
Many panels have separate Service and Protocol fields and add the underscores for you. Others want the full name _service._proto in the Name field. Check the panel hint.
Use a fully qualified target. Make sure the target host has an address record.
Run nslookup -type=SRV _sip._tcp.example.com 1.1.1.1 and confirm all four values.
The service and protocol labels must start with an underscore, such as _sip._tcp. Without them clients never find the record.
RFC 2782 forbids an alias as the target. Point it at a name with A or AAAA records.
The port is part of the record. If the service moves to another port, the SRV record must change too.
With one record and a dead host, clients have nowhere to go. Add a second record with a higher priority number.
An SRV record lets a client discover where a service runs, including host and port, without hard-coding them. Clients for protocols such as SIP and LDAP can use SRV lookups; RFC 2782 itself uses LDAP in its examples.
Priority decides order: clients try the lowest number first and use higher numbers only as fallback. Weight splits traffic among targets that share a priority, so weight 60 and 20 give roughly a 3 to 1 split.
No. RFC 2782 requires the target to be a hostname with direct address records and says it must not be an alias. Point the SRV at a name that has A or AAAA records.
Not for ordinary HTTP. Browsers use A, AAAA and CNAME records to find a website and always use the standard port from the URL. SRV only works with clients written to look it up.
The target hostname in the SRV record needs its own A or AAAA record, because clients resolve it in a second step. The SRV record name itself, such as _sip._tcp.example.com, does not need an address record.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.