Understanding the SRV Record

On this page
  1. Structural Breakdown of an SRV Record
  2. Operational Analysis of a Production Example

In network administration, directory service architecture, and systems engineering, resolving a domain name to a simple IP address is often insufficient for complex multi-platform communications. An SRV record (Service Location Record) is a specialized Domain Name System (DNS) resource record designed explicitly for service discovery.

Unlike a standard A or AAAA record—which merely maps a hostname to a physical network destination—the SRV record specifies the exact location, protocol, port number, and priority parameters of specific network services available within a target domain zone. This enables client applications to dynamically discover backend servers running enterprise applications such as Unified Communications (SIP), instant messaging (XMPP), and directory mappings (Active Directory / LDAP) without hardcoding explicit network topology maps.

Structural Breakdown of an SRV Record

An SRV record relies on a strict syntax format to deliver multi-layered communication parameters within a single DNS query. The record configuration is split across two primary segments: the Name / Service Key Descriptor and the Target Value Matrix.

1. The Name / Service Key Descriptor Field

This string acts as the explicit query key and must be formatted using a precise, standardized structure that informs the requesting application exactly which service and transport protocol are being targeted:

  • Service Identifier: Must begin with an underscore (_) followed by the symbolic name of the targeted service (e.g., _sip for Session Initiation Protocol or _xmpp-server).
  • Protocol Identifier: Follows the service key, beginning with an underscore (_) to define the transport layer protocol (e.g., _tcp, _udp, or _tls).
  • Domain Origin: Concludes with the specific zone name or top-level apex domain being mapped.

2. The Target Value Matrix

The value payload returns a composite array containing critical structural details required to establish an immediate network handshake:

  • Priority Configuration: A weight indicator used to balance connection hierarchies across multiple servers. Lower values receive priority routing.
  • Weight Variable: A load-balancing parameter used to distribute connection traffic proportionally among multiple target servers with identical priority scores.
  • Service Port Number: The exact physical or logical port on the target host where the application service listens for incoming connections (e.g., port 443 for secure web sockets or 5061 for encrypted SIP).
  • Target Host Domain Name: The fully qualified domain name (FQDN) of the machine providing the active service. This host must possess a valid A or AAAA mapping record within the global DNS tree.

Operational Analysis of a Production Example

Review the following enterprise configuration row designed to route secure voice and video communication traffic through cloud servers:

DNS Zone file

_sip._tls.yourdomain.com. 900 IN SRV 1 443 sipdir.online.lync.com.

When an enterprise communication client queries this zone record, the infrastructure parses the string piece by piece:

  • _sip Identifies the Session Initiation Protocol communication framework.
  • _tls Mandates that the connection must be wrapped inside a Transport Layer Security (TLS) cryptographic encryption tunnel.
  • yourdomain.com. Specifies the core corporate domain zone being managed.
  • 900 Represents the Time-To-Live (TTL) constant in seconds, dictating how long downstream edge servers can cache this routing path before re-polling the master nameserver.
  • 1 Sets the connection weight factor for balancing server cluster distributions.
  • 443 Directs the incoming application traffic directly to logical port 443 on the receiver.
  • sipdir.online.lync.com. Establishes the exact external cloud server address responsible for processing the incoming handshake.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.