in /etc/hosts, why?

NoOp glgxg at sbcglobal.net
Fri Aug 10 15:13:01 UTC 2007

On 08/10/2007 07:21 AM, Gerald Dachs wrote:
> Quoting Derek Broughton <news at pointerstop.ca>:
>> Gerald Dachs wrote:
>>> Quoting Casey Stamper <casey.stamper at gmail.com>:
>>>> I will admit my ignorance as to why that entry is in there but I DO
>>>> know that if you add mycomputer.mydomain mycomputer to the first line
>>>> as well, your name resolution speed increases and DNS lookups are much
>>>> faster.
>>> Yes, I have read this too when I searched for a reason for this
>>> IP. This makes it even more questionable. Is this a bug?
>>> I have seen this only in Ubuntu and I have seen many Linux and Unix
>>> installations.
>> Is which a bug?  If domain name resolution is really slowed, I'd think
>> that's a bug. Using is not a bug.  It can be quite handy to use
>> different IPs for different ways to name the local machine, and 127.* is
>> always the local machine. I really don't see how using multiple 127
>> addresses should slow down my name resolution.
> Slow name resolution is not my problem. That amavisd-new has now to  
> handle connects from and is my problem. Maybe  
> there are other services that have similar problems. From your post I  
> understand that this
> IP is not an ubuntu requirement, so I will change the hosts to
> only use the to make my configuration more easy.
> Thanks
> Gerald

I have always changed mine back to thinking it was a bug.
However, now I find:

#6:  Re: Performance tip for Feisty users
Explanation why.

This is a fix for the new system that was started back in edgy where the
host name was split off to, the problem is that some
applications still look for the host name @, so to keep those
applications happy and running smoothly you simple need to add the host
name where those applications expect it to be.


So I guess I'll change mine back to to stay with the standard(?).

My current hosts file (feisty) looks like this: localhost name.sambasharedomain name

My old one from Edgy had: localhost name.sambasharedomain name.sambasharedomain

I have no idea why it had name.sambasharedomain twice.

More information about the ubuntu-users mailing list