How to Configure Reverse DNS in WHM

Valid for versions 82 through 84




Last modified: January 11, 2022


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.

  • Changes to your server’s DNS nameservers do not take effect if your server’s DNS nameservers are not authoritative for your IP address.
  • 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.
  • 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.
  • PowerDNS is the default nameserver and is fully compatible with serving Reverse DNS records.

Configure reverse DNS


In the following examples:

  • represents your domain.
  • represents your main IP address.
  • represents your your server’s main IP address, in PTR record format.

Use the following steps to configure your server’s authoritative nameservers:

System requirements

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, where is your server’s main IP address, in PTR record format:

dig +nssearch

Add the reverse DNS zone

Navigate to WHM’s Add a DNS Zone interface (WHM >> Home >> DNS Functions >> Add a DNS Zone) and enter the following information:

  • This interface does not currently support IPv6.
  • If your hosting provider delegates you a byte boundary that is greater than 25, separate the network range and byte boundary with a dash () character. Do not use a forward slash (/) character. For example:
    For more information, read the RFC 2317 documentation.
  1. Enter your server’s IP address in the IPv4 Address text box.
  2. Enter the reverse DNS zone’s name in the Domain text box.
  3. To create a reverse DNS zone name for an IPv4 address, perform the following steps:
    1. Drop the last octet from the IP address.
    2. Reverse the order of the remaining octets.
    3. Append to the end of the octets.

A complete reverse DNS zone name for an IPv4 address will resemble the following example:

Edit the reverse DNS zone file

After you create your zone file, create each PTR record in WHM’s Edit DNS Zone interface (WHM >> Home >> DNS Functions >> Edit DNS Zone).


Your zone file already contains a Nameserver (NS) record for each of your server’s authoritative nameservers.

  1. Enter the octets in an available text box under the Add New Entries Below this Line heading.
  2. Select PTR in the appropriate menu. The Hostname text box will appear.
  3. Enter the hostname that corresponds to the last octet in the IP address.

Test your records

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:


If you correctly configured reverse DNS, the output will resemble the following example: domain name pointer

Additional Documentation