The SRV record (Service record) specifies the location of servers for specific services. It allows you to define not just the hostname, but also the port, priority, and weight for load balancing. SRV records are commonly used for VoIP, XMPP, LDAP, and Microsoft services.
Check SRV records for any domain using our free DNS lookup tool.
Look Up SRV Records →SRV records enable service discovery by specifying which server handles a particular service for a domain. Unlike A records which simply map domains to IPs, SRV records provide:
SRV records follow a specific naming convention:
_service._protocol.domain. TTL IN SRV priority weight port target
_sip._tcp.example.com. 3600 IN SRV 10 60 5060 sip1.example.com.
_sip._tcp.example.com. 3600 IN SRV 10 40 5060 sip2.example.com.
_sip._tcp.example.com. 3600 IN SRV 20 0 5060 backup.example.com.
SIP traffic uses sip1 (60%) and sip2 (40%) as primaries, with backup as failover.
| Field | Description | Example |
|---|---|---|
| _service | Service name (preceded by underscore) | _sip, _xmpp, _ldap |
| _protocol | Protocol (TCP or UDP) | _tcp, _udp |
| Priority | Lower = higher priority (like MX) | 10, 20, 30 |
| Weight | Load balancing within same priority | 60, 40 (60%/40% split) |
| Port | Service port number | 5060, 5222, 443 |
| Target | Server hostname | server.example.com. |
Like MX records, lower numbers are tried first. If priority 10 servers are unavailable, try priority 20.
Within the same priority, weight distributes traffic proportionally. A server with weight 60 gets 3× the traffic of one with weight 20.
_sip._tcp.example.com. SRV 10 60 5060 server1.example.com. ; 60%
_sip._tcp.example.com. SRV 10 20 5060 server2.example.com. ; 20%
_sip._tcp.example.com. SRV 10 20 5060 server3.example.com. ; 20%
_autodiscover._tcp.example.com. SRV 0 0 443 autodiscover.outlook.com.
_sip._tls.example.com. SRV 100 1 443 sipdir.online.lync.com.
_sipfederationtls._tcp.example.com. SRV 100 1 5061 sipfed.online.lync.com.
_xmpp-client._tcp.example.com. SRV 5 0 5222 xmpp.example.com.
_xmpp-server._tcp.example.com. SRV 5 0 5269 xmpp.example.com.
_sip._udp.example.com. SRV 10 100 5060 sip.example.com.
_sip._tcp.example.com. SRV 10 100 5060 sip.example.com.
_ldap._tcp.example.com. SRV 0 100 389 ldap.example.com.
_ldaps._tcp.example.com. SRV 0 100 636 ldap.example.com.
_caldavs._tcp.example.com. SRV 0 1 443 calendar.example.com.
_carddavs._tcp.example.com. SRV 0 1 443 contacts.example.com.
To explicitly indicate a service is not available, use a "." as the target:
_xmpp-client._tcp.example.com. SRV 0 0 0 .
# Using dig
dig _sip._tcp.example.com SRV
# Using host
host -t SRV _sip._tcp.example.com
# Using nslookup
nslookup -type=SRV _sip._tcp.example.com
Common issues and solutions:
DNS Explorer validates SRV records, checks target resolution, and alerts you to service discovery issues.
Start free DNS Explorer trial14-day full-feature trial
Use our DNS Record Finder to look up SRV records for any domain.
Look Up SRV Records →