Skip to content
Help Center

What is an SRV record and when is it used?

SRV Record: what it is, what it's for, and how it relates to domains and DNS within a hosting service.

Quick summary

  • What it is: An SRV Record (Service Record) is a type of record in the Domain Name System (DNS) used to identify servers that host specific services, such as VoIP.
  • What it's for: it helps connect the domain with the website, email and other associated services.
  • When to check it: when changing DNS servers, connecting a domain, configuring email or reviewing propagation.

An SRV Record (Service Record) is a type of record in the Domain Name System (DNS) used to identify servers that host specific services, such as VoIP (Voice over IP), instant messaging and other services that require port and protocol information in addition to the domain name. Unlike A records that simply map a domain name to an IP address, SRV records are more specific and provide additional information needed to connect to specific services.

Structure of an SRV Record:

An SRV record contains several essential pieces of information for correct routing of service requests. The general structure of an SRV record includes:

  • Service: The name of the service being provided, for example, _ldap, _http, _xmpp, etc.
  • Proto: The protocol used by the service, such as _tcp (Transmission Control Protocol) or _udp (User Datagram Protocol).
  • Name: The domain name to which this record applies.
  • TTL (Time to Live): The time in seconds that the record can be cached before requiring a new resolution.
  • Priority: When multiple SRV records exist for a service, priority determines the order of use. The server with the lowest priority is contacted first.
  • Weight: Used to determine load distribution among servers of equal priority. Higher weight means a higher probability of being selected.
  • Port: The TCP or UDP port on which the service is listening.
  • Target: The canonical hostname of the host providing the service, which should have a corresponding A or AAAA record to resolve to an IP address.

Applications of SRV records:

SRV records are extremely useful in environments where multiple servers offer the same service under a single domain. For example:

  • Directory Services like LDAP: In corporate environments where directory services like LDAP are distributed across multiple servers, SRV records help clients find an available domain controller.
  • Messaging and Collaboration Systems: Applications like Microsoft Exchange and XMPP servers for instant messaging use SRV records to direct users to their specific servers.
  • SIP (Session Initiation Protocol): In VoIP and other real-time communications systems, SRV records are used to identify SIP servers.

Importance of SRV records:

SRV records are fundamental for the operation of distributed and redundant services, providing a way to manage traffic to multiple servers and facilitate redundancy and load balancing without continuous manual intervention. By specifying priorities and weights, administrators can precisely configure how and when resources are accessed, which improves network efficiency and service availability. Additionally, they improve infrastructure scalability and management by allowing additional services to be added or reconfigured without disruptive or significant changes for end users.

Why it matters in hosting

Understanding this concept will help you make better decisions when managing your service. In practice, it relates to the connection between the domain, the website, email and other associated services. If it appears in a guide, the control panel or a support response, review the context before making changes.

Related articles

  • Domain
  • DNS
  • Nameservers
  • A Record
  • CNAME Record