[pkg-dhcp-devel] Bug#609851: [updated] incorrect variables used to set hostname in dhclient-script

Tim Heckman timothy.heckman at gmail.com
Sun Nov 20 20:06:03 UTC 2011

On Sun, Nov 20, 2011 at 12:22 AM, Andrew Pollock <apollock at debian.org>wrote:

> dhclient-script got some major overhauling in 4.2.2-1, and your patch is no
> longer applicable.
> Is the original bug still present in 4.2.2-1?
> regards
> Andrew


It does appear to work normally in 4.2.2-1 on Sid.  However, unless I am
missing something it appears that you cannot specify a hostname locally
without modifying '/etc/dhcp/dhclient.conf' to not request that information
via DHCP or simply using static IP addresses.  For example if I make the
following entry in "/etc/hosts" and issue the following command, the
hostname ("sid-test") is not set on boot:    sid-test    sid-test.timheckman.net

    `echo "sid-test" > /etc/hostname`

Instead, the hostname that was provided by DHCP is set every time.  Am I
missing a way to allow you to specify a hostname locally and not use the
one the DHCP server is providing without digging too deep in to
configuration files?  I do not feel the dhclient-script should handle this
way and should only set the hostname provided via DHCP if the local
hostname is '(none)', 'localhost', if "/etc/hostname" has a size of 0, or
if "/etc/hostname" has a size of zero and it differs from the current
hostname set.

Also, it's good to see progress was made on an unstable version.  How is
this going to be fixed up in the Debian Stable (6.0/Squeeze) package?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20111120/db6ae1c8/attachment.html>

More information about the pkg-dhcp-devel mailing list