Hostname funniness

Dmitriy Kropivnitskiy nigde at mitechki.net
Thu Nov 18 11:30:38 CST 2004


On Thu, 2004-11-18 at 17:53 +0100, Thomas Hood wrote:
> That will work in some cases.  However, in general 127.0.0.1 should be
> the IP address of localhost, a host that is always reachable, even on a
> system that gets its hostname via DHCP but isn't connected to the
> network yet.


Exactly my point. 127.0.1.1 is NEVER reachable, so any program that
tries to contact your host by name is going to fail weather you are
connected to the network or not. So the choice is clearly either to
dynamically change /etc/hosts or to point to 127.0.0.1 by default. I do
not really see a problem with the second approach, since reasonably
speaking, system should be always able to reach itself no matter network
or not.




More information about the ubuntu-devel mailing list