host.conf problem
Rick Stevens
rstevens at vitalstream.com
Wed Aug 31 01:23:48 UTC 2005
Bob McClure Jr wrote:
> On Tue, Aug 30, 2005 at 06:24:55PM -0500, Fred Grant wrote:
>
>>On Mon, 2005-08-29 at 18:18, Bob McClure Jr wrote:
>>
>>>On Mon, Aug 29, 2005 at 06:06:20PM -0500, Fred Grant wrote:
>>>
>>>>On log-in, I periodically and sporadically get a message that the system
>>>>can't determine the host for Internet use. When I check the host.conf
>>>>folder it is missing the "localhost.localdomain" info.
>>>
>>>That does not compute. /etc/host.conf (a file, not a folder) normally
>>>contains
>>>
>>> order hosts,bind
>>>
>>>and that's all. Perhaps you're thinking of /etc/hosts, which should
>>>have something like (mine as an example):
>>>
>>>127.0.0.1 localhost.localdomain localhost
>>>192.168.2.2 bobcat.bobcatos.com bobcat
>>>
>>>
>>>>I can fix it by (as root) copying hosts.bak to this folder but it is
>>>>kind of a pain.
>>>>
>>>>Any ideas as to why this periodically drops out? I'm using FC2.
>>>>
>>>>Thanks
>>>
>>>Cheers,
>>
>>You are right Bob, it's /etc/hosts that loses the localhost.localdomain
>>info. I wonder if I could incorporate copying of this info into the
>>daily cron job? Seems funny that the info periodically gets lost.
>
>
> No, that's a band-aid. Something else is wrong that needs to be fixed.
>
> Look in /etc/sysconfig/networking/profiles/default/hosts and see what
> it looks like. It it's improper, fix it and see if the problem
> doesn't go away.
>
> No, I don't know how that gets into the game. Rick probably does.
Er, it could be the DHCP client requesting it from the DHCP server and
gronking it. I'd have to look.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- Treat each day as if it's your last...a lot of crying and whining -
- usually gets you what you want! -- Sam Sledge -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list