A SRV record or Service record is a specification of data in the Domain Name System defining the location, i.e. the hostname and port number, of servers for specified services.
An SRV record has the form:
----------
_service._proto.name TTL class SRV priority weight port hostname
----------
* service: the symbolic name of the desired service.
* proto: the transport protocol of the desired service; this is usually either TCP or UDP.
* name: the domain name for which this record is valid.
* TTL: standard DNS time to live field.
* class: standard DNS class field (this is always IN).
* priority: the priority of the target host, lower value means more preferred.
* weight: A relative weight for records with the same priority.
* port: the TCP or UDP port on which the service is to be found.
* hostname: the canonical hostname of the machine providing the service.
For addin g the SRV record for a domain via cPanel WHM, please follow the steps below:
1) Login to WHM
2) Go to 'DNS Functions >> Edit DNS Zone'
3) Select the domain for which you need to add the SRV record.
4) Select 'SRV' from the drop down.
5) Enter the first column with the '_service._proto.name'
You will be also need to set the following fields:
- Priority
- Weight
- Port
- Hostname
To check for the SRV record we can use the command
#dig srv _autodiscover._tcp.cemty.ee
We will get answer section like the following:
ANSWER SECTION:
_autodiscover._tcp.cemty.ee. 14400 IN SRV 0 0 443 cpanelemaildiscovery.cpanel.net.