[ipcheck] Problem with DNS setup on name.server.net

npluis

Member
Feb 21, 2007
11
0
151
This is driving me nuts! Can someone please help with this.

I keep getting these emails:
IMPORTANT: Do not ignore this email.

The hostname (name.server.net) resolves to xx.xx.xx.153. It
should resolve to xx.xx.xx.170. 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.
/ect/hosts:
Code:
127.0.1.1		name
xx.xx.xx.153	name
127.0.0.1		localhost
xx.xx.xx.170	name.server.net name
/etc/resolf.conf
Code:
nameserver 83.149.80.123
nameserver 85.17.96.69
nameserver 8.8.8.8
Add an A Entry for your Hostname
Code:
Hostname 	Server Main Ip
name.server.net 	xx.xx.xx.170
dig +short name.server.net
Code:
xx.xx.xx.153
The xx.xx.xx.153 should be the right ip.

Please note, these are the settings now after changing a lot of things which causes downtime. I'm finaly happy everything is up again but I do like to get rid of these messages. I also think this prevents adding new domains to the server.

I think this all started after an upgrade of FreeBSD. I'm on WHM 11.30.7 (build 2) now.

Could someone please tell me what to do?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

Please check to see which IP cPanel detects as the main IP address of the server:

Code:
# cat /var/cpanel/mainip
You can update it to the correct IP address if the one listed is not valid.

Thank you.
 

npluis

Member
Feb 21, 2007
11
0
151
Thanks a lot for the answer!

Do I need to restart anything after that? Because it still complains.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Restarting services is not necessary after making that change. You can use the following command to verify if the issue persists:

Code:
# /scripts/ipcheck --verbose
Feel free to submit a ticket if you would like us to check further:

Submit A Ticket

Thank you.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
44
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
The issue is /etc/hosts having both listed for the hostname. You will need to remove the .170 IP in /etc/hosts and select WHM > Change Hostname again. During that process, ensure to use the .153 IP when setting the A record.