|
|||||||||||
|
Re: 127.0.1.1 in /etc/hosts, why?
From: Derek Broughton <news(at)pointerstop.ca>
Date: Fri Aug 10 2007 - 09:15:07 EDT
> Quoting Casey Stamper <casey.stamper@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 127.0.1.1 > 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 127.0.1.1 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. My /etc/hosts has: $ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 othello.pointerstop.ca othello 127.0.0.2 unix 127.0.0.3 plonevdc
127.0.1.1 is my real host
Strictly, they could all be on 127.0.0.1, and the HTTP server can be identified as a virtual host by Apache, but I find this convenient and cost-free. -- derek -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-usersReceived on Fri Aug 10 09:29:57 2007 This archive was generated by hypermail 2.1.8 : Tue Oct 16 2007 - 06:09:11 EDT |
||||||||||
|
|||||||||||