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’s source domain. System administrators use Reverse DNS information to help identify inbound connections trying to get past a firewall or other security.
If your cPanel & WHM server is authoritative, you can use your DNS server to update your server’s PTR records. However, most cPanel & WHM users do not 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.
In the following examples:
example.com represents your domain.192.168.0.1 represents your main IP address.0.168.192.in-addr.arpa represents your your server’s main IP address, in PTR record format.Use the following steps to configure your server’s authoritative nameservers:
PTR records require authoritative DNS nameservers before they can function properly. To find the authoritative DNS nameservers of your server’s main IP address, trace the Start Of Authority (SOA) record. To do this, run the following command:
dig +nssearch 0.168.192.in-addr.arpa
Navigate to WHM’s Add a DNS Zone interface (WHM >> Home >> DNS Functions >> Add a DNS Zone) and enter the following information:
25, separate the network range and byte boundary with a dash (–) character. Do not use a forward slash (/) character. For example,
128-24.0.168.192.in-addr.arpa
.in-addr.arpa to the end of the octets.A complete reverse DNS zone name for an IPv4 address will resemble the following example:
128/24.0.168.192.in-addr.arpa
After creating your zone file, create the reverse DNS zone file’s PTR record in WHM’s DNS Zone Manager interface (WHM >> Home >> DNS Functions >> DNS Zone Manager).
Your zone file already contains a Nameserver (NS) record for each of your server’s authoritative nameservers.
To add the DNS zone’s PTR record, perform the following steps:
After your domain’s DNS information propagates, confirm that you properly configured reverse DNS. To confirm that you properly configured reverse DNS, run the following command:
host 192.168.0.1
If you correctly configured reverse DNS, the output will resemble the following example:
1.0.168.192.in-addr.arpa domain name pointer www.example.com.