SRV Record

An SRV (Service) Record is a type of DNS record that specifies the hostname and port number of servers for specific services within a domain.

SRV record

What is an SRV record?

An SRV (Service) Record is a type of DNS record that specifies the hostname and port number of servers for specific services within a domain. SRV records are used to enable applications to discover the location of servers for various services, such as email, voice over IP (VoIP), and instant messaging.

The format of an SRV record includes the service name, protocol, priority, weight, port number, and target hostname. The priority and weight values are used to determine the order in which servers should be contacted, with lower priority values taking precedence.

SRV records are particularly useful for load balancing and failover scenarios, as they allow multiple servers to be listed for a particular service. This means that if one server becomes unavailable, the client can automatically switch to another server without any disruption in service.