Operating System - Linux
1752282 Members
4694 Online
108786 Solutions
New Discussion юеВ

Re: missing hostname to ipaddress mapping in /etc/hosts file

 
gab_in
Regular Advisor

missing hostname to ipaddress mapping in /etc/hosts file

Hi,

I installed RHEL3 last week and configured /etc/hosts for the hostname to ip address mapping. Yesterday I found the hostname entry missing from the system and only localhost entry was there.

Can somebody tell me how it can happen in linux?

thanks in advance
3 REPLIES 3
skt_skt
Honored Contributor

Re: missing hostname to ipaddress mapping in /etc/hosts file

look at the time stamp of the file..Check the history if some one else has access to the system.

There are some tool/utilies when ran can create/replace the existing hostfiles.
Bill McNAMARA_1
Honored Contributor

Re: missing hostname to ipaddress mapping in /etc/hosts file

I've never seen this happen on EL3.0 U2, U5 or U6..

maybe on the others :)

maybe you've been using systemconfigurator?

What does the /etc/sysconfig/network file look like? same timestamps as on the /etc/hosts?

Bill
It works for me (tm)
Vipulinux
Respected Contributor

Re: missing hostname to ipaddress mapping in /etc/hosts file

Hi

If you are manually editing the files; you should not configure network thru GUI.(system-config-network)

If you wanna do it thru GUI dont edit the files manually.

Just open system-config-network and put in the details and then always using system-config-network to make changes dont edit manually.

Cheers