So, adding a file `hostname“ to /etc/dhcp/dhclient-exit-hooks.d/ with this in
it:
# = begin /etc/dhcp/dhclient-exit-hooks.d/hostname ==
if [ -n $new_host_name ]
then
echo "$new_host_name" > /etc/hostname
/bin/hostname $new_host_name
fi
# = end /etc/dhcp/dhclient-exit-hooks.d
Public bug reported:
Despite multiple bug reports and attempts at fixes, ubuntu versions
maverick and natty do NOT set their hostname from dhcp. See: #537978,
#482313, #90388, #476491
Releases:
---
maverick: lsb_release -rd
Description:Ubuntu 10.10
Release:
I will check that next week, time permitting.
On Fri, Feb 19, 2010 at 3:14 PM, Chuck Short wrote:
> Thanks for the bug report Ill have a look at this. If possible can you
> check to see if this is fixed on lucid?
>
> Regards
> chuck
>
> ** Changed in: dhcp3 (Ubuntu)
> Ā Importance: Undecided => M
Public bug reported:
This is an important option for managed workstations like in universities and
such.
In Hardy it was perfectly possible to let the dhcpserver set the clients
hostname. In the server dhcpd.conf you can set hostnames for the clients like
this:
host appel {
fixed-add
Hello?? It used to work in Hardy!!!
Therefore either a newer version of dhcp3-client or network-manager or a
change to the default configuration by the ubuntu developers must have
caused this to stop working. The ability to centrally manage large
numbers of workstations includes the ability to set