Hosts file entires

Rashkae ubuntu at tigershaunt.com
Thu Nov 27 21:12:48 UTC 2008


Ray Parrish wrote:
> Hello,
> 
> I downloaded the hosts file available from the MIcrosoft MVP site, and 
> had problems with localhost. I asked on this list, and was told to add 
> two localhost lines to the hosts file. This solved the problem but I was 
> just looking at the hosts file, and I think I may have one line 
> incorrect. See the following -
> 
> 127.0.0.1  localhost ray--desktop
> 127.0.1.1  ray-desktop
> 
> My question is, is there supposed to be two dashes in that first line, 
> or did I blow that part of it?
> 
>

You blew it.  No need to panic though, just check what your host name
is: cat /etc/hostname

Then fix whichever of the above lines is wrong.





More information about the ubuntu-users mailing list