{"id":637,"date":"2020-09-08T22:32:54","date_gmt":"2020-09-08T16:32:54","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=637"},"modified":"2020-09-08T22:34:04","modified_gmt":"2020-09-08T16:34:04","slug":"how-to-add-srv-records","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-add-srv-records.html","title":{"rendered":"How to Add SRV Records"},"content":{"rendered":"\n<p>SRV are &#8216;service&#8217; type records added in dns zone files. These are added to indicate a certain kind of service runs on a specific port, on a specific domain\/subdomain. Many control panel, will give clear distinction to make you select the following items in a srv record:<\/p>\n\n\n\n<ol><li>Protocol Type (TCP\/UDP)<\/li><li>Weight<\/li><li>Port<\/li><li>Target Host<\/li><\/ol>\n\n\n\n<p>Now, if by any chance, you are doing it in a panel like Cyberpanel, or some other zone files, it is highly likely you will have a way to distinct any of these. This simple How to, is for them specially. <\/p>\n\n\n\n<p>If for example, your domain is &#8216;nanotools.com&#8217;, and you are trying to add something like autodiscover.nanotools.com with the following details:<\/p>\n\n\n\n<p>Protocol: TCP<br>Weight: 0<br>Port: 443<br>Target Host: fortinet.yourmails.com<\/p>\n\n\n\n<p>Let&#8217;s start with is going to be your &#8216;name&#8217; field. Usually you would use &#8216;autodiscover&#8217; as the name field, but in this case, you would have to use it with the protocol with a underscore and a dot (._) in front as following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">autodiscover._tcp<\/pre>\n\n\n\n<p>Next, you enter TTL, Prioriy as you would also do. But at the end, you have 3 more fields to enter, but you have one content\/value section in your zone. For the SRV records, we fill it like the following:<\/p>\n\n\n\n<p>weight port target_host<\/p>\n\n\n\n<p>It means, we first give the weight, then a space, then the port, then a space, then the target hostname and then a dot to end the section. In our case, it would be:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">0 443 fortinet.yourmails.com.<\/pre>\n\n\n\n<p>So the whole record going to be as following: (expects priority is 10)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">autodiscover._tcp 3600 IN SRV 10 0 443 frotinet.yourmails.com.<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SRV are &#8216;service&#8217; type records added in dns zone files. These are added to indicate a certain kind of service runs on a specific port, on a specific domain\/subdomain. Many control panel, will give clear distinction to make you select the following items in a srv record: Protocol Type (TCP\/UDP) Weight Port Target Host Now, &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-add-srv-records.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Add SRV Records&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[477,476,475],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/637"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=637"}],"version-history":[{"count":2,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/637\/revisions"}],"predecessor-version":[{"id":639,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/637\/revisions\/639"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}