1. Home
  2. What Is an SRV Record?

What Is an SRV Record?

SRV (Service record) is a DNS resource record, which defines the location of servers for specified services.

SRV record is used to describe specified services and servers such as autodiscover, CalDAV, CardDAV, Minecraft, Skype Business Online (SIP), Office 365 (SIP), etc.

The SRV record allows customers to access a specific service on the web, located on a certain host or accessible only on a specific port.

SRV record setup

You can set up the SVR record in your customer profile, if you are using a DNS hosting for your domain.

You can set up the SVR record through the Advanced DNS editor in cPanel in case you have set up the name servers for a specific hosting.

SRV record format

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

service – the name of the services, for example _sip., _caldav., etc.; the service names and their assigned ports are standardized; full list is available at IANA: Service Name and Transport Protocol Port Number Registry.

proto – the transport protocol – usually either TCP or UDP;

name – the domain name, ending in a dot (“.”);

TTL – standard DNS refresh time;

priority – similar to the priority for MX records, lower value means a higher priority;

weight – relative weight for records with the same priority, higher value means higher priority;

port – TCP or UDP port where the service can be found;

target – the host name of the server, providing the service, ending in a dot (“.”); there should be an A record created that points to the
server providing the service.

You can verify the SRV record with dig or nslookup, for example:

dig _sip._tls.domain.com SRV

host -t SRV _sip._tls.domain.com

nslookup -querytype=srv _sip._tls.domain.com

A few examples of SRV records for specific services:

Office 365

_sip._tls.domain.com. 3600 100 1 443 sipdir.online.lync.com.
_sipfederationtls._tcp.domain.com. 3600 100 1 5061 sipfed.online.lync.com.

Minecraft – game server

_minecraft._tcp.domain.com. 3600 0 5 25565 minecraft.domain.com.

Updated on 02.04.2022
Was this article helpful?