2

I've got a small environment of ~40 VMs with static IPs on 12 servers, it would be dandy if I could refer to each VM by name. We have a lot of VMs come and go, so maintaining one static list is a pain.

Is there a way I can configure a DNS server to dynamically register the new names as they are created?

  • 1
    What DNS server software are you using? BIND e.g. has the allow-update {} clause which you may be very interested in. You'll probably want to run DHCP (even if you do use statically assigned IPs) for this to work best. – a CVn Apr 5 '13 at 15:06
1

Typically dnsmasq does that by default. It updates the DNS with the hostnames sent by the DHCP clients.

That (and its great flexibility of deployment) is probably why you often see it used in virtualisation solutions like libvirt, convirt, openstack nova...

0

Zeroconf might be a solution. If you set up avahi mDNS (packages avahi-daemon and libnss-mdns) the hosts advertise their host names and you can resolve them with <hostname>.local.

0

Use the nsupdate command from the bind-utils package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.