Record type reference
SRV Record
An SRV (service) record tells clients which host and port provide a named service, such as SIP calling or Active Directory LDAP. It adds priority and weight so clients can fail over and share load.
SRV record at a glance
| Field | Value |
|---|---|
| Type code | 33 |
| Defined in | RFC 2782 |
| Owner name | _service._protocol.name, such as _sips._tcp.example.com |
| Value | Priority, weight, port and target host |
| Target rules | A 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
| Name | Used by |
|---|---|
| _ldap._tcp.dc._msdcs.example.com | Windows clients finding Active Directory domain controllers |
| _kerberos._tcp.example.com | Kerberos key distribution centers |
| _sips._tcp.example.com | SIP calling over TLS, the standard name from RFC 3263 |
| _sip._tls.example.com | Microsoft Lync, Skype for Business and Teams sign-in (a Microsoft convention, not the SIP standard) |
| _autodiscover._tcp.example.com | Outlook mail profile discovery, as a fallback to the autodiscover hostname |
| _imaps._tcp.example.com, _submission._tcp.example.com | Mail client setup (RFC 6186) |
| _xmpp-client._tcp.example.com | XMPP 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)
| Command | What it does |
|---|---|
| dig _sips._tcp.example.com SRV | The SRV set, with TTL |
| dig +short _sips._tcp.example.com SRV | Priority, weight, port and target for each record |
| dig +short _ldap._tcp.dc._msdcs.example.com SRV | Active Directory domain controllers |
| dig +short sip1.example.com A | Confirm a target resolves to an address |
nslookup (Windows, macOS, Linux)
| Command | What it does |
|---|---|
| nslookup -type=SRV _sips._tcp.example.com | The SRV set from your default DNS server |
| nslookup -type=SRV _ldap._tcp.dc._msdcs.example.com | Domain controllers, a common Active Directory check |
| nslookup -type=SRV _autodiscover._tcp.example.com 1.1.1.1 | The Autodiscover SRV, asked of Cloudflare |
PowerShell (Windows)
| Command | What it does |
|---|---|
| Resolve-DnsName -Name _sips._tcp.example.com -Type SRV | SRV records with NameTarget, Priority, Weight and Port columns |
| Resolve-DnsName _ldap._tcp.dc._msdcs.example.com -Type SRV | Domain controllers for an Active Directory domain |
| Resolve-DnsName _sips._tcp.example.com -Type SRV | Where-Object Section -eq 'Answer' | Sort-Object Priority, Weight | Answer 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
- RFC 2782: A DNS RR for specifying the location of services (DNS SRV)
- RFC 3263: Session Initiation Protocol (SIP): Locating SIP Servers
- RFC 6186: Use of SRV Records for Locating Email Submission/Access Services
- Microsoft Learn: Verify SRV DNS records for a domain controller
- BIND 9 manual: dig
- Microsoft Learn: nslookup
- Microsoft Learn: Resolve-DnsName