AFAICS setting the hostname via dhcp still does not work, even though the debug hooks show that both the old_host_name and the new_host_name are sent. Attached you can find the debug output.
Here is a suggested patch: --- /sbin/dhclient-script.orig 2010-01-09 04:31:48.000000000 +0100 +++ /sbin/dhclient-script 2010-02-15 08:35:32.000000000 +0100 @@ -157,8 +157,7 @@ BOUND|RENEW|REBIND|REBOOT) - if [ -n "$old_host_name" -a -n "$host_name" -a \ - "$host_name" != "$old_host_name" ]; then + if [ -n "$new_host_name" ]; then hostname "$new_host_name" fi Regards Harri
Mon Feb 15 08:36:13 CET 2010: entering dhclient-enter-hooks.d, dumping variables. reason='PREINIT' interface='eth0' medium='' alias_ip_address='' new_ip_address='' new_subnet_mask='' new_domain_name='' new_domain_search='' new_domain_name_servers='' new_routers='' new_static_routes='' old_ip_address='' old_subnet_mask='' old_domain_name='' old_domain_search='' old_domain_name_servers='' new_host_name='' old_host_name='' old_routers='' old_static_routes='' -------------------------- Mon Feb 15 08:36:13 CET 2010: entering dhclient-exit-hooks.d, dumping variables. reason='PREINIT' interface='eth0' medium='' alias_ip_address='' new_ip_address='' new_subnet_mask='' new_domain_name='' new_domain_search='' new_domain_name_servers='' new_routers='' new_static_routes='' old_ip_address='' old_subnet_mask='' old_domain_name='' old_domain_search='' old_domain_name_servers='' old_routers='' new_host_name='' old_host_name='' old_static_routes='' -------------------------- Mon Feb 15 08:36:16 CET 2010: entering dhclient-enter-hooks.d, dumping variables. reason='BOUND' interface='eth0' medium='' alias_ip_address='' new_ip_address='192.168.1.166' new_subnet_mask='255.255.255.0' new_domain_name='mydomain.de' new_domain_search='mydomain.de.' new_domain_name_servers='192.168.1.123 192.168.1.124' new_routers='192.168.1.1' new_static_routes='' old_ip_address='192.168.1.166' old_subnet_mask='255.255.255.0' old_domain_name='mydomain.de' old_domain_search='mydomain.de.' old_domain_name_servers='192.168.1.123 192.168.1.124' new_host_name='squeeze' old_host_name='squeeze' old_routers='192.168.1.1' old_static_routes='' -------------------------- Mon Feb 15 08:36:17 CET 2010: entering dhclient-exit-hooks.d, dumping variables. reason='BOUND' interface='eth0' medium='' alias_ip_address='' new_ip_address='192.168.1.166' new_subnet_mask='255.255.255.0' new_domain_name='mydomain.de' new_domain_search='mydomain.de.' new_domain_name_servers='192.168.1.123 192.168.1.124' new_routers='192.168.1.1' new_static_routes='' old_ip_address='192.168.1.166' old_subnet_mask='255.255.255.0' old_domain_name='mydomain.de' old_domain_search='mydomain.de.' old_domain_name_servers='192.168.1.123 192.168.1.124' old_routers='192.168.1.1' new_host_name='squeeze' old_host_name='squeeze' old_static_routes='' --------------------------