cPanel server: “hostname resolves to” alert email

The “hostname resolves to. It should resolve to xx.xx.xx.xx” alert is sent by cPanel if the hostname of your server is not resolving to your server IP. The message send by cPanel is as follows:
IMPORTANT: Do not ignore this email.
The hostname (server.domain.tld) resolves to .  It should resolve to
xx.xx.xx.xx.  Please be sure to correct /etc/hosts as well as the ‘A’
entry in zone file for the domain.

Some are all of these problems can be caused by
/etc/resolv.conf being setup incorrectly.  Please check this file if you
believe everything else is correct.

In order to stop the “hostname” alert, you need to make sure the hostname is pointing to your server IP. The ‘A’ record for the hostname has to be set where the name servers of “domain.tld” are hosted.
For example, if the hostname of your server is “”, an ‘A’ record for “server” has to be set on the servers where name servers assigned to “” are resolving. If the name servers for are resolving to your server, you need to edit the dns zone file of from
WHM >> DNS Functions >> Edit a DNS Zone”

and add an ‘A’ record for ‘server’ to point to your server IP.
If you are using your domain registrar’s name servers for, then you have to set an ‘A’ record in the domain registrar panel. But make sure it is set correctly on your server as well.
Next step is to see if the hostname is properly set in the /etc/hosts file of the server. SSH to your server as root and make sure the hostname is set as follows:

ServerIP server

If the hostname is resolving to your server IP and you still receive the alert message, disable the alert for the hostname from

WHM >> Server Contacts >> “IP Address DNS Check”

cPanel server: “hostname resolves to” alert email
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fork me on GitHub