Specifies the location of servers for specific services
The SRV (Service) record specifies the hostname and port for specific services. Unlike A records that only provide an IP address, SRV records include the port number, priority, and weight, enabling more sophisticated service discovery and load balancing.
SRV records are commonly used for services like SIP (VoIP), XMPP (chat), LDAP, and Microsoft services (Active Directory, Office 365). The format includes the service name and protocol as part of the record name.
The priority and weight fields enable advanced load balancing. Lower priority values are tried first, and weight is used to distribute load among records with the same priority.
_service._protocol.domain.com. IN SRV priority weight port target._sip._tcp.example.com. 3600 IN SRV 10 60 5060 sipserver.example.com.SIP service over TCP is available at sipserver.example.com on port 5060, with priority 10 and weight 60.