[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: localhost in /etc/hosts



> On Wed, Nov 22, 2006 at 12:17:03AM +0100, Vincent Lefevre wrote:
> 
> > Well, the result of the hostname command depends on the /etc/hosts
> > file and if your configuration is incorrect, it may not give you a
> > consistent result.

On 22.11.06 13:41, David Jardine wrote:
> Not here.  It uses the /etc/hostname file.  I changed the entry in 
> /etc/hostname to "jim", rebooted, and was greeted with 
> 
> jim login:
> 
> The "hostname" command gave me "jim".
> 
> On the other hand, I changed the /etc/hosts entry to 
> 
> 127.0.0.1  tom dick harry quash localhost loopback
> 
> to see what would happen.  It had no effect on "hostname".

You should read more of this thread before commenting. try 'hostname -s'

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers. 



Reply to: