Most linux VPS users, running cPanel on their server have the following error.
Below are the steps on how you can correct it.
Error Mail
From: cpanel@host.123.com [mailto:cpanel@host.123.com]
Sent: 05 December 2011 22:07
To: contact@123.com
Subject: [ipcheck] Problem with DNS setup on host.123.com
IMPORTANT: Do not ignore this email.
The hostname (host.123.com) resolves to 67.215.65.132. It
should resolve to x.x.x.x Please be sure that the contents of
/etc/hosts are configured correctly, and also that there is a
correct 'A' entry for the domain in the zone file.
Some or all of these problems can be caused by /etc/resolv.conf
being setup incorrectly. Please check that 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' option under 'Dns Functions' in
your Web Host Manager.
Solution
There are several ways to correct this problem, a few of which are mentioned below. The end result should be that the hostname of your VPS should resolve correctly to the VPS IP address.
1) Let us consider that the hostname of your VPS is host.123.com and IP address of the VPS is x.x.x.x
Before starting, check the nameservers of the domain 123.com and make sure you are making the changes at the correct nameservers. If the domain 123.com is using your VPS nameservers itself, you can make the changes in your WHM. If the domain is using remote nameservers, you will have to contact the support team there to make the changes.
1) Login to WHM of your VPS -> DNS Functions -> Edit DNS Zone -> select the domain abc.com
2) Add an A record for host in the DNS zone of 123.com as follows
host 1000 IN A x.x.x.x (where x.x.x.x is the IP address of your VPS)
3) Save the DNS zone.
4) As an additional step, you can also do the following.
WHM -> DNS Functions -> Add an A Entry for your Hostname -> Enter the IP address of your VPS, say x.x.x.x in the text box and click ‘Add entry’
5) Once it is done, run the script /scripts/ipcheck and see if you are receiving the same error email again.
6) If the error still persists, it can sometimes be the propagation delay and you will have to wait a few more hours till the changes propagate.
7) The above should work. If no changes are seen, you may also add the following to the file /etc/hosts
x.x.x.x host.abc.com
Save the changes and close the file.
Done !
If you are still receiving error mails, please contact our support