host.conf problem

Bob McClure Jr robertmcclure at earthlink.net
Tue Aug 30 23:35:53 UTC 2005


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.

Cheers,
-- 
Bob McClure, Jr.             Bobcat Open Systems, Inc.
robertmcclure at earthlink.net  http://www.bobcatos.com
Peace at any price is inflationary.




More information about the Redhat-install-list mailing list