| I'm sorry I can't speak for dhclient anymore... I've had to reinstall pump since dhclient wouldn't properly release leases and so made my DDNS unreliable.
Anyway, I think that all the HOSTNAME setting in /etc/sysconfig/network is used for is for actually setting the hostname. I don't think dhclient or any of its wrapping scripts uses it for not updating the hostname. Don't you think that yours just doesn't update the hostname since it doesn't get one from the DHCP server? Of course, it wouldn't hurt setting it, and it might be that if you don't have a proper hostname, dhclient will update it at will.
Anyway, isn't there an option for dhclient not to update the hostname?
I, too, would recommend against genlee's fix, however. Not only is it not RedHat compatible, it is also, as majorwoo stated, just a one time fix. The next time you update your lease, the hostname will be changed nonetheless. |