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 stands for Sender Policy Framework, a protection against email address spoofing. It identifies the SMTP mail servers authorized to send messages through domain name system (DNS) records. Its purpose is to prevent, for example, a message with the ...
    • How the static DNS panel works

      Below we will see how the static DNS panel works. To perform any management, you must access it from the "Free DNS" option in the top menu of the cdmon control panel and click on Static DNS. Options available in the DNS zone manager From the "Static ...
    • Pilotron | Static DNS Management

      Pilotron is your artificial intelligence assistant in the cdmon control panel. With this tool, you can manage and obtain information about your hosting services quickly and easily, without needing to manually navigate through the control panel. In ...
    • How to add a domain to static DNS

      From the cdmon control panel you can easily and quickly add a domain to the static DNS. Access DNS management To do so, go to Free DNS in the top menu of the cdmon control panel. On the next screen, click on Static DNS to access static DNS ...
    • How to set up email redirects in static DNS

      To create email forwarding in the static DNS from your control panel, it is essential that you have the domain registered with cdmon. There are two possible ways to access the email forwarding configuration from the basic services list: through the ...