Configuring Reverse DNS in WHM

Reverse DNS uses pointer records (PTR) to convert IP addresses into domain names. This is the opposite of forward DNS, which uses A records to convert domain names into IP addresses.

First, add a new DNS zone file. You can accomplish this using the Add a DNS Zone feature in the DNS Functions section of your WHM interface (Main >> DNS Functions >> Add a DNS Zone).

To continue, enter the IP address and proper reverse DNS zone name in the appropriate fields.

To properly format the Domain field in the interface.

Take the first 3 octets of the IP address, Reverse them, and Affix in-addr.arpa to the end. So, for example, the reverse DNS entry for 192.168.0.1 is 0.168.192.in-addr.arpa. After you have filled out these 2 fields, click the Add Zone button.

One you have created your zone file, you can edit it. You can do this using the WHM Edit DNS Zone screen (Main >> DNS Functions >> Edit DNS Zone). Your zone file should already contain an NS entry for every authoritative nameserver associated with your server. To finish this process, we need to add a PTR record for each IP address we wish to name in the last octet of 192.168.0.

After the reverse DNS zone has propagated, run a test to ensure that you have properly configured reverse DNS. To do so, you can use the following command:

host 192.168.0.1

If you have properly configured your reverse DNS zone file, the output should resemble the following:

user@host: [~]# host 192.168.0.1
1.0.168.192.in-addr.arpa domain name pointer serverbuddies.com.

One Response to “Configuring Reverse DNS in WHM”

  1. 1temperatureson 12 Jan 2022 at 10:25 pm

    2flemish…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.