[Bug 90388] Re: hostname supplied by dhcp server is not used

Christoph Dwertmann cdwertmann at gmail.com
Fri Jan 29 05:40:23 GMT 2010


I've just tested this on 9.10 server. Just create the file '/etc/dhcp3
/dhclient-exit-hooks.d/hostname' with the contents:

if [[ -n $new_host_name ]]; then
  echo "$new_host_name" > /etc/hostname
  /bin/hostname $new_host_name
fi

Works!

-- 
hostname supplied by dhcp server is not used
https://bugs.launchpad.net/bugs/90388
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.



More information about the Ubuntu-server-bugs mailing list