Home
Lookup Tools
Analysis
Bulk & Enterprise
Resources
Close

SRV Record Service

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.

Look Up SRV Records

Check SRV records for any domain using our free DNS lookup tool.

Look Up SRV Records →

What Is an SRV Record?

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 Record Format

SRV records follow a specific naming convention:

_service._protocol.domain.  TTL  IN  SRV  priority  weight  port  target

Example SRV Record

_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.

SRV Record Fields

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.

Priority and Weight

Priority

Like MX records, lower numbers are tried first. If priority 10 servers are unavailable, try priority 20.

Weight

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%

Common SRV Record Examples

Microsoft 365 / Exchange

_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 (Jabber)

_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 (VoIP)

_sip._udp.example.com.  SRV  10  100  5060  sip.example.com.
_sip._tcp.example.com.  SRV  10  100  5060  sip.example.com.

LDAP

_ldap._tcp.example.com.  SRV  0  100  389  ldap.example.com.
_ldaps._tcp.example.com. SRV  0  100  636  ldap.example.com.

CalDAV / CardDAV

_caldavs._tcp.example.com.  SRV  0  1  443  calendar.example.com.
_carddavs._tcp.example.com. SRV  0  1  443  contacts.example.com.

Disabling a Service

To explicitly indicate a service is not available, use a "." as the target:

_xmpp-client._tcp.example.com.  SRV  0  0  0  .

SRV Record Best Practices

Querying SRV Records

# 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

Troubleshooting SRV Records

Common issues and solutions:

Check Your SRV Records

Use our DNS Record Finder to look up SRV records for any domain.

Look Up SRV Records →

Related Record Types