Most affordable 24×7 server management plan including 24×7 monitoring, security audit and much more  Server Management Services 

“IMPORTANT: do not ignore this email: The hostname resolves to xxx.xxx.xxx.xxx . It should resolve to xxx.xxx.xxx.xxx

Some times you may get alerts as mentioned above, this happened because of the resolving of hostname is not happening correctly.

For fixing this issue follow the steps given below,

Step 1.

Login to WHM

Step 2.

You probably see the error now, go ahead and close it for now and go to ‘DNS Functions’.

Click on ‘Add an A entry for your hostname’. WHM will try to analyze your hostname and then present you with a button to click that says Add the entry, go ahead and click on that.

WHM should automatically try to add the relevant A record for your hostname to the DNS zone present on your system.

Step 3.

Now logout and login again to WHM and see if the message is there or not.

In case you find the message again in WHM go to the next step.

Step 4.

Go ahead and edit your /etc/hosts file.

our /etc/hosts file looks like,

[root@iserversupporttest1 ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
xxx.xxx.xxx.xxx iserversupport.com

Make sure that your /etc/hosts looks something like,

# cat /etc/hosts
      127.0.0.1              localhost
      xx.xx.xx.xx            myserver.mydomain.com myserver

If you would like more information on the structure of the hosts file type ‘man hosts’ as the structure of this file is outside of the scope of this document.

Step 5.

Make sure that your /etc/resolv.conf has the following within.

nameserver 8.8.8.8
nameserver 8.8.4.4

If not add the above to the  /etc/resolv.conf file and it will be ok now.