How to Configure Reverse DNS for BIND in WHM

You are here:
< Back

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.

Configure reverse DNS


 

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). To do this, run the appropriate command:

IPv4

dig +nssearch 0.168.192.in-addr.arpa

Note:

In this example, 0.168.192.in-addr.arpa represents your server’s main IP address.

IPv6

dig +nssearch 8.4.7.2.3.b.1.8.5.e.5.2.8.e.d.f.ip6.arpa

Note:

In this example, 8.4.7.2.3.b.1.8.5.e.5.2.8.e.d.f.ip6.arpa represents your server’s main IP address.

Important:

  • 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 delegate authority for PTR records to their customers.
  • Contact your upstream provider to either delegate authority to your nameservers or set up PTR records for your nameservers.

 


 

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:

  • Your server’s IP address in the Ip text box.
  • The reverse DNS zone’s name in the Domain text box.
    • For information about how to name a reverse DNS zone, click the link below that corresponds to your IP address version.
       IPv4 reverse DNS zone
       IPv6 reverse DNS zone

The Domain Information section of WHM’s Add DNS Zoneinterface.

 


 

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).

Note:

Your zone file already contains an NS entry for each of your server’s authoritative nameservers.

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

Create a PTR record in the Edit DNS Zone interface.

 


Test your records.

After your domain’s DNS information propagates, confirm that you properly configured reverse DNS.

Click your IP version’s link below for instructions about how to test your reverse DNS zone configuration.

 IPv4
 IPv6
Last Updated On July 31, 2018

Leave a Reply

Your email address will not be published.