Skip to main content
SRV

SRV Record

Active

The SRV (Service) record specifies the hostname and port for a specific service on a domain.

_service._proto.name TTL IN SRV priority weight port target

In one line

The SRV (Service) record specifies the hostname and port for a specific service on a domain. It enables service discovery without hardcoding ports, used by SIP, XMPP, Microsoft services, and Kubernetes. SRV records include priority, weight, port, and target fields.

Description

SRV records generalize the MX concept to any service. They allow services to be discovered via DNS without requiring clients to know port numbers in advance. The format includes priority (lower = preferred), weight (for load balancing among equal-priority records), port number, and target hostname.

Examples

SIP service
shell
_sip._tcp.example.com.    3600    IN    SRV    10 20 5060 sip.example.com.
XMPP client connection
shell
_xmpp-client._tcp.example.com.    3600    IN    SRV    5 0 5222 xmpp.example.com.
Lookup
shell
dig _sip._tcp.example.com SRV

Related Record Types

Specification

RFC 2782 – DNS SRV record specification →