SRV record at a glance

FieldValue
Type code33
Defined inRFC 2782
Owner name_service._protocol.name, such as _sips._tcp.example.com
ValuePriority, weight, port and target host
Target rulesA hostname with A or AAAA records, not a CNAME; a lone dot means "not offered"

Here is how an SRV record looks in a zone file:

_sips._tcp.example.com.  3600 IN SRV 10 60 5061 sip1.example.com.
_sips._tcp.example.com.  3600 IN SRV 10 40 5061 sip2.example.com.
_sips._tcp.example.com.  3600 IN SRV 20 0  5061 sip-backup.example.net.

Both sip1 and sip2 have priority 10, so clients use them first and split traffic about 60/40 by weight. sip-backup at priority 20 is used only when both are down.

Priority, weight and port

A client looks up the SRV set, picks the lowest priority group, and chooses within it at random in proportion to weight. Weight 0 records are chosen only when nothing else in the group has weight. The port field lets a service run somewhere other than its well-known port without users typing it. If every target in a group fails, the client moves to the next priority.

A single record with target . says the service is deliberately not offered, which saves clients from trying fallbacks.

Common SRV names

NameUsed by
_ldap._tcp.dc._msdcs.example.comWindows clients finding Active Directory domain controllers
_kerberos._tcp.example.comKerberos key distribution centers
_sips._tcp.example.comSIP calling over TLS, the standard name from RFC 3263
_sip._tls.example.comMicrosoft Lync, Skype for Business and Teams sign-in (a Microsoft convention, not the SIP standard)
_autodiscover._tcp.example.comOutlook mail profile discovery, as a fallback to the autodiscover hostname
_imaps._tcp.example.com, _submission._tcp.example.comMail client setup (RFC 6186)
_xmpp-client._tcp.example.comXMPP chat clients

Web browsers do not use SRV; the newer HTTPS and SVCB records fill that role for the web. SRV records in the enterprise covers deployment patterns.

How to look up an SRV record

Each tool below sends the query to your default resolver unless you name a server. Swap in your own domain for example.com, and add a public resolver such as 1.1.1.1 to compare answers with what your network sees. Always query the full underscore name; the bare domain holds no SRV records.

dig (macOS, Linux, WSL)

CommandWhat it does
dig _sips._tcp.example.com SRVThe SRV set, with TTL
dig +short _sips._tcp.example.com SRVPriority, weight, port and target for each record
dig +short _ldap._tcp.dc._msdcs.example.com SRVActive Directory domain controllers
dig +short sip1.example.com AConfirm a target resolves to an address

nslookup (Windows, macOS, Linux)

CommandWhat it does
nslookup -type=SRV _sips._tcp.example.comThe SRV set from your default DNS server
nslookup -type=SRV _ldap._tcp.dc._msdcs.example.comDomain controllers, a common Active Directory check
nslookup -type=SRV _autodiscover._tcp.example.com 1.1.1.1The Autodiscover SRV, asked of Cloudflare

PowerShell (Windows)

CommandWhat it does
Resolve-DnsName -Name _sips._tcp.example.com -Type SRVSRV records with NameTarget, Priority, Weight and Port columns
Resolve-DnsName _ldap._tcp.dc._msdcs.example.com -Type SRVDomain controllers for an Active Directory domain
Resolve-DnsName _sips._tcp.example.com -Type SRV | Where-Object Section -eq 'Answer' | Sort-Object Priority, WeightAnswer rows only, in the order a client considers them

Common mistakes

  • Querying the bare domain. SRV lives at the underscore name, so dig example.com SRV finds nothing.
  • A target that is a CNAME or an IP address. Point SRV at a hostname with its own A or AAAA records.
  • Wrong protocol label. _tcp, _udp and _tls are different names; clients ask for exactly one.
  • Weight 0 on every record. Clients then pick at random, which is fine, but probably not what a weight plan intended.

SRV records in Domain Visualizer

An advanced scan in Domain Visualizer looks up SRV records for SIP, Autodiscover, LDAP and Kerberos at the domain, and the detail panel shows each record’s priority, weight, port and target.

FAQ

Do web browsers use SRV records?

No. Browsers find websites with A, AAAA and CNAME records, and increasingly with HTTPS records. SRV is used by protocols such as SIP, LDAP, Kerberos, XMPP and some games.

What does an SRV target of a single dot mean?

It means the service is deliberately not available at this domain. Clients should stop looking rather than try fallbacks.

Can I put SRV records on a subdomain?

Yes. The service and protocol labels go in front of any name, for example _sips._tcp.voice.example.com.

Sources and further reading