The SRV Record is a specification of data in the Domain Name System (DNS) defining the location (i.e. the hostname and port number) of servers for specified services. It is frequently used when configuring SIP or some other third-party service.
The service of SRV record has the following components:
Service: The symbolic name of the desired service.
Protocol: The transport protocol of the desired service; this is usually either TCP or UDP.
Name: The domain name for which this record is valid, ending in a dot.
TTL: The standard DNS time to live field.
The SRV record has the following look in your ClouDNS Control Panel:
Host: | Type: | Points to: | TTL |
_service._protocol e.g.: _sip._tcp* | SRV | hostnameofthemashine.com. | 1 Hour |
*This hostname is used as an example.
Let say you want to run a video or/and audio connection on a specific port of your server. Typically, you will use the SIP protocol to regulate this communication. And here is where the SRV record comes in. It allows you to specify how your domain name handles this particular service.
Go to your Control Panel and click on Add new record. Type, as follow:
CNAME's role is quite trivial. It simply maps a certain hostname of your domain to another hostname or domain. The SRV purpose is a bit more complicated. It defines a host of your domain for which a certain service is supported.
As the most commonly used resource record, the DNS "A" record is used for Forwarding DNS Resolution. It just points your hostname to an IP address. And the SRV is used to specify the location (hostname and port number) of specific service and how does your domain handle that service.
ClouDNS provides full support for SRV records for all our DNS services, including the listed below. Just write to our technical support, if you need any assistance with your SRV records configuration. Our Technical Support team is online for you 24/7 via live chat and tickets.
Question: I can't see where to fill my service and protocol. Am I doing something wrong?
Answer: The crucial moment here is that there aren't any separate fields for service and protocol. You must add them in the Host field with your hostname, like _sip._tcp.hostname for example.
Question: What are the differences between Priority and Weight?
Answer: The Priority defines which SRV record of the target host will be preferenced. Lower value means more preferred. And the Weight parameter represents the relative weight for records with the same priority. Higher value means more preferred.