[karmic regression] Hostname not set by dhclient when no hostname defined in /etc/hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcp3 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
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-
set_hostname() {
local current_
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
ProcVersionSign
SourcePackage: dhcp3
Uname: Linux 2.6.31-14-generic i686
Thanks for the bug report.
Can you include the output of /etc/hostname?
thanks
chuck