Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
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. –  Michael Kjörling Apr 5 '13 at 15:06
add comment

3 Answers

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...

share|improve this answer
add comment

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.

share|improve this answer
add comment

Use the nsupdate command from the bind-utils package.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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