Hostname funniness

Thomas Hood jdthood at
Thu Nov 18 10:53:17 CST 2004

On Thu, 2004-11-18 at 17:19, Dmitriy Kropivnitskiy wrote:
> 1. s/<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  Use 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


> Either ip-up and dhcpcd.exe scripts should be configured to change
> hosts file

Yes, that is one possible solution.  See #267530.

> or should be the address responding to the hostname.

That will work in some cases.  However, in general 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