Hostname funniness
Thomas Hood
jdthood at aglu.demon.nl
Thu Nov 18 10:53:17 CST 2004
On Thu, 2004-11-18 at 17:19, Dmitriy Kropivnitskiy wrote:
> 1. s/127.0.1.1/<your static IP>/
>
> 2. Not all of us happen to have a luxury of a static IP address.
Right. If you have a static IP address for a built-in adapter, use the
static IP address instead of 127.0.1.1. Use 127.0.1.1 if your machine
runs some of the time with no network adapters or if its only adapter is
normally configured via DHCP.
There is unfortunately no perfect solution -- the above just happens to
be what I consider the best overall, after having participated in
several discussions like these on Debian lists. Others may reasonably
differ.
Refs:
http://bugs.debian.org/247734
http://marc.theaimsgroup.com/?l=debian-devel&m=108669848825476&w=2
> Either ip-up and dhcpcd.exe scripts should be configured to change
> hosts file
Yes, that is one possible solution. See #267530.
> or 127.0.0.1 should be the address responding to the hostname.
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.
--
Thomas Hood
More information about the ubuntu-devel
mailing list