Cannot add A entry for hostname

markjohnson

Member
Apr 23, 2009
21
0
51
Hi,

I keep getting this message via email:

IMPORTANT: Do not ignore this email.
The hostname (server01.web-epoch.com) resolves to XX.XXX.XXX.XX. It should resolve to 0.0.0.0. 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.


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
In WHM, I click on 'Add an A Entry for your Hostname', and to the right it gives me an error warning saying:

'[an error occurred while processing this directive]'

Upon clicking on that it says:

No IP address found on eth0, make sure device is correctly configured, returning 0.0.0.0 at /usr/local/cpanel/Cpanel/DIp/MainIP.pm line 145.
Cpanel:: DIp::MainIP::getmainserverip() called at whostmgr/bin/whostmgr2.pl line 1592
main::addaforhost() called at whostmgr/bin/whostmgr2.pl line 367
What is going on and how can I fix it?
 

markjohnson

Member
Apr 23, 2009
21
0
51
eth0 Link encap:Ethernet HWaddr 00:09:3D:10:A0:0E
inet6 addr: fe80::209:3dff:fe10:a00e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10124301 errors:0 dropped:0 overruns:0 frame:0
TX packets:13117534 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1750732867 (1.6 GiB) TX bytes:15561814079 (14.4 GiB)
Interrupt:185

eth0:0 Link encap:Ethernet HWaddr 00:09:3D:10:A0:0E
inet addr:XX.XXX.XXX.XX Bcast:XX.XXX.XXX.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:185

eth0:1 Link encap:Ethernet HWaddr 00:09:3D:10:A0:0E
inet addr:XX.XXX.XXX.XX Bcast:XX.XXX.XXX.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:185

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:990329 errors:0 dropped:0 overruns:0 frame:0
TX packets:990329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:350336689 (334.1 MiB) TX bytes:350336689 (334.1 MiB)
What's happened here, for some reason, eth0 has no address. Suddenly, eth0:0 has replaced eth0, and eth0:1 is behaving as normal.

In 'Basic cPanel/WHM Setup' I changed the main eth to eth0:0 and the problem disappeared.

But I am still a bit confused to what and why this happened.