Adding or editing an entry in /etc/hosts

Derek Broughton news at pointerstop.ca
Mon Jan 8 19:55:54 UTC 2007


Martin Marcher wrote:

> Hello,
> 
> Am 08.01.2007 um 16:24 schrieb Derek Broughton:
> 
>> Brian Lunergan wrote:
>>
>>> Based on Rebel Lion's suggestion my hosts file no contains:
>>>
>>> 127.0.0.1 localhost.localdomain localhost
>>> 127.0.1.1 ubuntu
>>
>> OK, that explains _that_ odd entry in my hosts file.  I just
>> removed "127.0.1.1 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... :-)
> 
> A common use for those addresses are adblockers (maybe you installed
> one ages ago?). Purpose is (for example)

Definitely not.  In the first place, I just let Konqueror handle that, and
in the second it was _my_ host name that was there.  
> 
>> Can someone explain what 127.0.1.1 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.
> 
> Yes 127.0.0.0/8 is reserved for local host, everything with those IP
> addresse routes back to localhost.

Thanks.
-- 
derek





More information about the ubuntu-users mailing list