{"id":370,"date":"2021-07-23T12:28:38","date_gmt":"2021-07-23T12:28:38","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-configure-reverse-dns-for-bind-in-whm\/"},"modified":"2021-07-23T12:28:38","modified_gmt":"2021-07-23T12:28:38","slug":"how-to-configure-reverse-dns-for-bind-in-whm","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-configure-reverse-dns-for-bind-in-whm\/","title":{"rendered":"How to Configure Reverse DNS for BIND in WHM"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\">\n<div id=\"versioned-article-header\">\n<p class=\"valid-version-info\"><em>Valid for versions 86 through the latest version<\/em><\/p>\n<\/div>\n<div id=\"version-select-group\" aria-label=\"select versions\">\n<h4>Version:<\/h4>\n<h4>82<\/h4>\n<h4>86<\/h4>\n<\/div><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>Reverse DNS uses pointer records (PTR) to convert IP addresses to domain names. Forward DNS uses A records to convert domain names to IP addresses.<\/p>\n<p>Mail servers use Reverse DNS information to help validate a message\u2019s source domain. System administrators use Reverse DNS information to help identify inbound connections trying to get past a firewall or other security.<\/p>\n<p>If your cPanel &#038; WHM server is authoritative, you can use your DNS server to update your server\u2019s PTR records. However, most cPanel &#038; WHM users do <strong>not<\/strong> have the authority edit their PTR record directly. Instead, some hosting providers offer reverse DNS management in a client interface. For more information, contact your hosting provider.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>Changes to your server\u2019s DNS nameservers do <strong>not<\/strong> take effect if your server\u2019s DNS nameservers are <strong>not<\/strong> authoritative for your IP address.<\/li>\n<li>Many hosting providers do not allow their customers to modify their nameserver PTR records. Contact your hosting provider to delegate authority to your nameservers or set up your nameserver PTR records.<\/li>\n<li>If you are updating PTR records for mail purposes, it is only necessary to update the records for IP addresses that your sites use to send mail.<\/li>\n<\/ul><\/div>\n<\/div>\n<h2 id=\"configure-reverse-dns\">Configure reverse DNS<\/h2>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>In the following examples:<\/p>\n<ul>\n<li><code>example.com<\/code> represents your domain.<\/li>\n<li><code>192.168.0.1<\/code> represents your main IP address.<\/li>\n<li><code>0.168.192.in-addr.arpa<\/code> represents your your server\u2019s main IP address, in PTR record format.<\/li>\n<\/ul><\/div>\n<\/div>\n<p>Use the following steps to configure your server\u2019s authoritative nameservers:<\/p>\n<h3 id=\"system-requirements\">System requirements<\/h3>\n<p>PTR records <strong>require<\/strong> authoritative DNS nameservers before they can function properly. To find the authoritative DNS nameservers of your server\u2019s main IP address, trace the Start Of Authority (SOA) record. To do this, run the following command:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-BASH\" data-lang=\"BASH\">dig +nssearch <span style=\"color:#ae81ff\">0<\/span>.168.192.in-addr.arpa<\/code><\/pre>\n<\/div>\n<h3 id=\"add-the-reverse-dns-zone\">Add the reverse DNS zone<\/h3>\n<p>Navigate to WHM\u2019s <em>Add a DNS Zone<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; Add a DNS Zone<\/em>) and enter the following information:<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>This interface does <strong>not<\/strong> currently support IPv6.<\/li>\n<li>If your hosting provider delegates you a byte boundary that is <strong>greater<\/strong> than <code>25<\/code>, separate the network range and byte boundary with a dash (<code>\u2013<\/code>) character. Do <strong>not<\/strong> use a forward slash (<code>\/<\/code>) character. For example,\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-BASH\" data-lang=\"BASH\"><span style=\"color:#ae81ff\">128<\/span>-24.0.168.192.in-addr.arpa\n<\/code><\/pre>\n<\/div>\n<p>For more information, read the RFC 2317 documentation.<\/li>\n<\/ul><\/div>\n<\/div>\n<ol>\n<li>Enter your server\u2019s IP address in the <em>IPv4 Address<\/em> text box.<\/li>\n<li>Enter the reverse DNS zone\u2019s name in the <em>Domain<\/em> text box.<\/li>\n<li>Create a reverse DNS zone name for an IPv4 address. To do this, perform the following steps:\n<ol>\n<li>Drop the last octet from the IP address.<\/li>\n<li>Reverse the order of the remaining octets.<\/li>\n<li>Append <code>.in-addr.arpa<\/code> to the end of the octets.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>A complete reverse DNS zone name for an IPv4 address will resemble the following example:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-BASH\" data-lang=\"BASH\"><span style=\"color:#ae81ff\">128<\/span>\/24.0.168.192.in-addr.arpa<\/code><\/pre>\n<\/div>\n<h3 id=\"edit-the-reverse-dns-zone-file\">Edit the reverse DNS zone file<\/h3>\n<p>After creating your zone file, create the reverse DNS zone file\u2019s PTR record in WHM\u2019s <em>DNS Zone Manager<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; DNS Functions &gt;&gt; DNS Zone Manager<\/em>).<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>Your zone file already contains a Nameserver (NS) record for each of your server\u2019s authoritative nameservers.<\/p>\n<\/p><\/div>\n<\/div>\n<p>To add the DNS zone\u2019s PTR record, perform the following steps:<\/p>\n<ol>\n<li>In WHM\u2019s <em>DNS Zone Manager<\/em> interface, click <em>Manage<\/em> next to the domain you want to modify. The system will direct you an interface that displays the domain\u2019s current list of zone records.<\/li>\n<li>Click <em>Add Record<\/em>. The system will create a new record entry row in the table.<\/li>\n<li>Select <em>PTR<\/em> from the <em>Type<\/em> menu.<\/li>\n<li>Enter the DNS zone record\u2019s information in the text boxes, then click <em>Add Record<\/em>.<\/li>\n<\/ol>\n<h3 id=\"test-your-records\">Test your records<\/h3>\n<p>After your domain\u2019s DNS information propagates, confirm that you properly configured reverse DNS. To confirm that you properly configured reverse DNS, run the following command:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-BASH\" data-lang=\"BASH\">host <span style=\"color:#ae81ff\">192<\/span>.168.0.1<\/code><\/pre>\n<\/div>\n<p>If you correctly configured reverse DNS, the output will resemble the following example:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-BASH\" data-lang=\"BASH\"><span style=\"color:#ae81ff\">1<\/span>.0.168.192.in-addr.arpa domain name pointer www.example.com.<\/code><\/pre>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Valid for versions 86 through the latest version Version: 82 86 Overview Reverse DNS uses pointer records (PTR) to convert IP addresses to domain names. Forward DNS uses A records to convert domain names to IP addresses. Mail servers use Reverse DNS information to help validate a message\u2019s source domain. System administrators use Reverse DNS &hellip;<\/p>\n","protected":false},"author":1,"featured_media":371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/370"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/371"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}