When you log in for the first time on a newly setup cPanel system, you may see the following message:

IMPORTANT: Do not ignore this email.

The hostname (hostname.server.com) resolves to. It should resolve to xx.xx.xx.xx. Please be sure to correct /etc/hosts as well as the 'A' entry in the 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.


You may be able to automatically correct this problem by using the 
'Add an A entry for your hostname' under 'DNS Functions' 
in your Web Host Manager

 

 

To solve this issue, please use the following procedure:

1. Follow the instructions that cPanel has provided by checking to see if you can solve this issue using WHM provided tools. Login to your server's WHM (not cPanel) by going to https://[YOUR SERVER IP]:2087 in your web browser.

2. You will probably see the error again but go ahead and close it for now and scroll down the left-hand Functions Menu until you find the heading '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 that says “Add the entry”.Please click the button and WHM should automatically try to add the relevant A record for your hostname to the DNS zone present on your system.

3. Logout and then log back into WHM to see if the message returns. Look to the top of WHM to see the "Logout(root)" link.

Optional Tip: If you don't like logging into and then out of WHM while testing the fixes you can instead log in to your server via SSH and to test simply run the following command “/scripts/ipcheck”.This command will send you an email immediately if your settings are still incorrect.

4. If the above steps do not work, then you edit your /etc/hosts file. Log in to your system via SSH. Use your favorite text editor to make sure that your /etc/hosts file looks something like this.

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 host's file, type 'man hosts'.

Was this answer helpful? 0 Users Found This Useful (0 Votes)