[pkg-dhcp-devel] Bug#643771: isc-dhcp-client: host name should be set to non-fqdn [patch]
Wouter Van Hemel
wouter-debian at publica.duodecim.org
Mon Oct 10 11:32:46 UTC 2011
Package: isc-dhcp-client
Version: 4.2.2-1
Followup-For: Bug #643771
Hello,
According to the Debian reference, the host name (as set by /etc/hostname) should be non-fqdn, i.e. a simple host name without domain name.
DHCP may contain pretty random host/domain names, and changing the host name on the machine might trigger a denial of service as services (including X) can't connect or spawn new processes anymore when a new DHCP packet arrives and the host name is changed while those services are already running.
Attached you find a simple patch that strips the domain name part of $new_host_name in /etc/dhclient-script to bring it in line with the Debian reference and user expectations. I'm not going to elaborate on the benefits and drawbacks of using the DHCP host name field; there are probably valid reasons either way and I'm not qualified enough to discuss or acknowledge all possible network configurations.
Regards,
Wouter
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.39-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages isc-dhcp-client depends on:
ii debianutils 4.0.4
ii iproute 20110629-1
ii isc-dhcp-common 4.2.2-1
ii libc6 2.13-21
isc-dhcp-client recommends no packages.
Versions of packages isc-dhcp-client suggests:
pn avahi-autoipd <none>
pn resolvconf <none>
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhclient-script-no_fqdn.patch
Type: text/x-diff
Size: 853 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20111010/151db6bf/attachment.patch>
More information about the pkg-dhcp-devel
mailing list