Central hostname management

Tom H tomh0665 at gmail.com
Wed Jun 4 19:07:01 UTC 2014


On Wed, Jun 4, 2014 at 5:55 AM, Niki Kovacs <info at microlinux.fr> wrote:
>
> I'll answer this myself, since I just found the solution after some more
> fiddling. It's actually very simple and works perfectly.
>
> On the client :
>
> 1. Remove network-manager.
>
> 2. Configure a classic DHCP client in /etc/network/interfaces.
>
> 3. Remove the static /etc/hostname file.
>
> 4. Edit /etc/hosts to only contain '127.0.0.1 localhost.localdomain
> localhost'.
>
> 5. Reboot.
>
> Now all clients are given correct hostname information (according to
> 'hostname' and 'hostname --fqdn') from the server without the slightest bit
> of static information on any client machine. Works perfectly.

I don't think that step (1) and (2) really matter.

It's strange that this works but that assigning the hostname to be
"localhost" via "/etc/hostname" is different than having it assigned
by "/etc/init/hostname.conf". Maybe the "-b" switch allows dhcp to
override "localhost".

Out of curiosity, what's the output of "cat /proc/sys/kernel/hostname"
with your new setup?




More information about the ubuntu-users mailing list