SRV Records
SRV (Service) records specify the location of servers for specific services. They're used to enable service discovery without knowing the exact server hostname.
How SRV Records Work
Instead of hardcoding server addresses, clients query SRV records to discover where a service is located. This is commonly used for:
- Email servers (SMTP, IMAP, POP3)
- Video conferencing (SIP, XMPP)
- LDAP directories
- Custom services
SRV Record Format
_service._protocol.example.com. IN SRV 10 5 5060 sipserver.example.com.
Components
- _service - Service name (e.g., _sip, _http, _ldap)
- _protocol - Protocol (e.g., _tcp, _udp)
- Priority - Lower = preferred (0-65535)
- Weight - Load balancing among same priority
- Port - Service port number
- Target - Server hostname
Common Examples
# SIP (VoIP) _sip._tcp.example.com. SRV 10 5 5060 sip.example.com. # XMPP (Chat) _xmpp._tcp.example.com. SRV 10 5 5222 chat.example.com. # LDAP _ldap._tcp.example.com. SRV 10 5 389 ldap.example.com.
Testing SRV Records
Use our SRV Lookup tool to check your SRV records.
Try it on your domain
See the theory in practice — run a SRV Lookup for your own domain.