I've been trying to figure out how to make my Ubuntu machine get its hostname from DHCP on boot. This is the standard in several other distributions, e.g. SuSE.
I tried to find some clue in the documentation of the dhcp3-client but to no avail. I later tried to install 'dhcpcd' and even though the SET_HOSTNAME='yes' it still doesn't do it. It seems as if it ignores the hostname from the DHCP. 'pump' didn't work either.
Oh, and one more thing. The same machine on a fresh install gets the correct hostname from DHCP, but the thing is that this hostname changes from time to time and the machine has to keep-up...
If anyone has any idea on how to fix it, it would be greatly appreciated.