How to set up the SRV record for mail in static DNS

How to set up the SRV record for mail in static DNS

SRV is a DNS record where information about the available services of the domain is specified. In practical terms, this record is required in protocols such as SIP or XMPP, where information is queried to determine where to find the service.

For example: when configuring an SRV record for the host _sip._tcp.example.org, you fill in the following fields:
 
  • Destination host: centraleta01.example.net
  • Priority level: 10
  • Weight: 100
  • Port: 5060
 
One of the main features of the SRV record is that multiple records can be configured with different priority and weight values, also for different hosts and/or connection ports. For example:

 

HostPriorityWeightPort
sip.example.net101005060
sip2.example.net101505060
auxsip.example.net201005066

 

One question you might have is, where is the protocol defined?
 
The protocol is defined in the subdomain, using the following format:
 
_SERVICE._PROTOCOL.DOMAIN. TTL, CLASS, SRV, PRIORITY, WEIGHT, PORT, TARGET.
 
To configure the SRV record for your domain, go directly to "Manage DNS" from the "Basic service list" in our control panel and follow these steps.
 
 
Add record
In the "DNS Records" list, click New record and in "Record type" choose the SRV option.
 
 
Specify the TTL value, subdomain (protocol), destination domain, priority, weight, port, and save the record.



TTL value: you can specify the period of time that DNS servers should use the record before checking for updates.
Redirect: only one subdomain.
Subdomain: protocol. This is where the information is queried to determine where to find the service.
Destination host: shows the name of the server where the service you are configuring is located.
Priority level: specifies the order in which client applications will contact the servers (similar to MX records). These applications will first attempt to contact the host with the lowest priority value, then the next one, and so on.
Weight: is a load-balancing mechanism.
Port: shows the service port on the host.

Propagation
 
You have now created the SRV record. Now you only need to wait for the changes to propagate, a process that may take approximately five minutes.

For more information, you can contact us.
    • Related Articles

    • How to set up SPF record for mail in static DNS

      SPF is the acronym for Sender Policy Framework, a protection against address forgery for sending email. It identifies SMTP email servers authorized for the transport of messages through the domain name records (DNS). Its meant, for example, to stop ...
    • What is the static DNS server and how we can modify it

      DNS is a Domain Name System, distributed naming system for resources connected to the Internet. In cdmon Static DNS means the resources that it points to are assigned constant, non-changeable IP (as in opposition to Dynamic DNS system). DNS servers ...
    • How to set up email or record MX

      The MX Record (Mail Exchanger Record) is the record that allows the reception of mail. It specifies the mail servers that the domain has. An MX record always points to an A record, it never points to a CNAME. To configure the mail record or MX record ...
    • How to set up a CNAME record

      Register domain online A CNAME Record (Canonical Name Record) is the equivalent of an alias for another record. It is used when one or multiple records need to point to the same record. If that record points to an IP address and the others point to ...
    • How to set up a TXT record

      A TXT record is a type of DNS record that provides text information to external sources outside our domain. The TXT record not only allows you to enter any type of information in text format, but nowadays, combined with the SPF protocol, it can be ...