[Bug 476491] [NEW] [karmic regression] Hostname not set by dhclient when no hostname defined in /etc/hosts

Stefano Rivera launchpad at rivera.za.net
Fri Nov 6 14:01:38 GMT 2009


Public bug reported:

While this would appear to be the same as bug #90388, we've never had an
issue in any release before karmic, if the only IPv4 data in /etc/hosts
was "127.0.0.1 localhost".

In jaunty and previously, on bootup with no hostname specified, the
hostname would be "(none)". In /sbin/dhclient-script, there's the
following:

set_hostname() {
    local current_hostname=$(hostname)
    if [ -z "$current_hostname" -o "$current_hostname" = "(none)" ]; then
        hostname "$new_host_name"
    fi
}

However, with karmic, the system will boot with a hostname of
"localhost" and the above rule will never fire.

ProblemType: Bug
Architecture: i386
Date: Fri Nov  6 15:31:07 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: dhcp3-client 3.1.2-1ubuntu7
ProcEnviron:
 LANG=en_ZA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: dhcp3
Uname: Linux 2.6.31-14-generic i686

** Affects: dhcp3 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 karmic regression

-- 
[karmic regression] Hostname not set by dhclient when no hostname defined in /etc/hosts
https://bugs.launchpad.net/bugs/476491
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.



More information about the Ubuntu-server-bugs mailing list