Adding or editing an entry in /etc/hosts

Ozgur Karatas okaratas at
Mon Jan 8 15:34:58 UTC 2007

adding ip and hostname for your /etc/hosts file.

ozgur at ozgur:~/Desktop/$ cat /etc/hosts       localhost ozgur

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Derek Broughton yazmış:
> Brian Lunergan wrote:
>> Based on Rebel Lion's suggestion my hosts file no contains:
>> localhost.localdomain localhost
>> ubuntu
> OK, that explains _that_ odd entry in my hosts file.  I just
> removed " othello" (my host name) from hosts a few days ago,
> because it was interfering with "hostname -d" (which I use for network
> identification) when I was not actually connected to a network. I didn't
> recognize it, but assumed I must have added it.  Now I suspect my fresh
> install of edgy did it.  Maybe it did have a use... :-)
> Can someone explain what is supposed to be?  Maybe it's just
> supposed to be "anything". I can't believe I've been using Linux for a
> decade and only just discovered that all 127.x.x.x addresses seem to map
> to
> the local machine.
> --
> derek

Ozgur Karatas



More information about the ubuntu-users mailing list