The server in question is a Xen virtual machine running Ubuntu 9.10 Server. The physical Xen server is aussi on our network, et quand I booted up le VM for le premier time in Xen (I imported it depuis a local Virtualbox VM running on mon machine, où it was running on a différent network), it got a DHCP lease depuis our office network et everything was good.
I checked le `dhclient.eth0.leases` file to see what got configured, et saw that le old DHCP lease depuis le previous network le machine was on was encore there, as well as le nouveau DHCP lease for le office network c'est currently connected to. Il y a two things J'ai remarqué right away:
-
The old DHCP lease information depuis le previous network ne have an `options host-name` line, qui I take to mean le original VirtualBox version of le VM n'était pas sending this option to le DHCP server. Or does this mean le old DHCP server didn't support le DHCP host name option? C'était using VirualBox's internal DHCP server at le time...
-
The nouveau DHCP lease information *does* have an `options host-name` line, qui includes le correct, current hostname for le server ("fozzie"). If I understand correctly, this means le server sent c'est hostname to le DHCP server on our network.
Il y a a number of things Je ne understand about tous this.
**First**, I did pas change `dhclient.conf` for le server at tout point; c'est using le par défaut configuration. In fact it contains le suivant line verbatim:
`send host-name "
So mon premier question is, how in le heck did it know to send le server's real hostname si le configuration n'est pas set up to send it in le premier place?
**Second**, why did le premier DHCP lease (for le old network) pas include `option host-name`, mais le second DHCP lease (on le nouveau network) did include it, si I n'ont pas touched tout of le configuration files?
All I did was export le original VirtualBox machine as an OVF, et alors import it into XenServer, so how did it magically configure mon hostname via DHCP si c'est pas even configured avec le actual hostname in `dhclient.conf`?
**Third**: When I run `hostname`, le server returns `fozzie.our.domain`, mais `dhclient.eth0.leases` says le hostname option was set to `fozzie` (no domain). How did it know to strip off le domain?