[pkg-dhcp-devel] Bug#627825: isc-dhcp-client: Please provide a possibility keep the hostname untouched

Axel Beckert abe at debian.org
Tue May 24 19:18:17 UTC 2011


Package: isc-dhcp-client
Version: 4.1.1-P1-17
Severity: wishlist

Since the inclusion of the patches in http://bugs.debian.org/609408,
dhclient always resets the hostname:

>     - fix setting of hostname in dhclient-script

I can't remember for how long this didn't work as it was expected to
(probably since the move of /bin/sh from bash to dash), but I find the
"fixed" behaviour very annoying, especially if a hostname is already set
via /etc/hostname or I explicitly configured in /etc/dhcp/dhclient.conf
to send a hostname.

I also don't understand why the hostname is currently always reset to
"anonhost-0263" on this machine as this isn't the hostname in the PTR
record of the IP I got via DHCP. It's also no existing other hostname in
the DNS domain I am currently in. I first suspected avahi-autoipd, but
deinstalling it didn't change this behaviour.

I currently use an exit-hook which resets the hostname to the one I
configured in /etc/hostname, but this is quite ugly as the hostname then
is changed twice on every lease renewal.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'stable'), (500, 'testing'), (400, 'oldstable'), (110, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-client depends on:
ii  debianutils                  4           Miscellaneous utilities specific t
ii  iproute                      20110315-1  networking and traffic control too
ii  isc-dhcp-common              4.1.1-P1-17 common files used by all the isc-d
ii  libc6                        2.13-4      Embedded GNU C Library: Shared lib

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
ii  avahi-autoipd                 0.6.30-3   Avahi IPv4LL network address confi
pn  resolvconf                    <none>     (no description available)

-- Configuration Files:
/etc/dhcp/dhclient.conf changed:
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name "nemo";
prepend domain-search "6.deuxchevaux.org";
prepend domain-search "ethz.ch";
prepend domain-search "deuxchevaux.org";
prepend domain-search "noone.org";
request subnet-mask, broadcast-address, time-offset, routers,
	domain-name, domain-name-servers, domain-search, host-name,
	netbios-name-servers, netbios-scope, interface-mtu,
	rfc3442-classless-static-routes, ntp-servers;


-- no debconf information





More information about the pkg-dhcp-devel mailing list