February 13, 2013

VM not sending hostname to DNS/DHCP server

On some VMs I spin up on ESXi the hostname is not sent to my DNS/DHCP server running in pfSense. Haven't found exactly why because it seems occasionally Ubuntu VMs do send this correctly on first boot. I'm probably doing something not smart. Anyway, you can easily fix this problem by adding the following -

CentOS/Ubuntu
Add this to /etc/sysconfig/network

DHCP_HOSTNAME=hostname

Replace hostname with your servers hostname and restart networking. It should now send the hostname to your DNS/DHCP server.

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus