home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] hosts Problem

On Thu, May 25, 2006 at 01:23:09AM -0400, Dave Edwards wrote:
> There's something wrong with my system's understanding of its
> hostname.  The source:
> 
> $ head -2 /etc/hosts
> 127.0.0.1 localhost
> 127.0.0.1 bigstory.homelinux.org bigstory

Make only 1 127.0.0.1 line?  Something is getting confused an setting
your hostname to "bigstory localhost.localdomain".  Look around wherever
you set the hostname (/etc/sysconfig somewhere?)

mh

> 
> $ cat /etc/hostname
> bigstory
> 
> The symptoms:
> $ hostname
> bigstory localhost.localdomain
> 
> $ hostname -f
> hostname: Unknown host
> 
> $ hostname -a
> hostname: Unknown host
> 
> $ sudo ls /dev/null # or any sudo command
> sudo: unable to lookup bigstory localhost.localdomain via gethostbyname()
> /dev/null
> 
> It also affects mutt's ability to use GPG and temp files, a DCOPserver,
> and probably other stuff I have yet to encounter.
> 
> I've restarted the network, and I've also rebooted.  Neither effected
> the cure.  Can someone help me get to the bottom of this?
> 
> Dave.
> -- 
> Dave Edwards <dle @ sympatico.ca>
> Freelance and Technical Writer,
> With Special Interest in Open Source Software
> http://bigStory.homelinux.org
> _______________________________________________
> Linux mailing list
> Linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca
> http://www.oclug.on.ca/mailman/listinfo/linux

-- 
Martin Hicks || mort [ at ] bork [ dot ] org || PGP/GnuPG: 0x4C7F2BEE

replies

references

message navigation