dynamic dns

asked 2014-04-16 15:35:38 -0600

anonymous user


Hi guys, Running openstack havana in a multi node testing setup, instances are getting created and allocated ip address fine, and host names are being assigned to the nodes based on the instance name given in horizon when creating the instance. example of hostname on vm:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether fa:16:3e:ae:00:4f brd ff:ff:ff:ff:ff:ff
inet brd scope global eth0
inet6 fe80::f816:3eff:feae:4f/64 scope link tentative dadfailed 
   valid_lft forever preferred_lft forever
[root@vm-5 ~]# hostname

However I would like to be able to look up these host names dynamically without having to configure dnsmasq manually. I notice in my /var/lib/neutron/dhcp/<network-namespace-id>/host file the host names are listed but they are different to the ones set on the vm:


this network name space has a dnsmasq instance running in it at ip and i can nslookup the host names based on the ipaddress by querying it

Address:   name = host-192-168-0-11.testvm.my.net.

Is there any way I can get dnsmasq to set the host name given to the vm in its host file? If I could do this then I could just point a forwarding dns server at address and all vms would be able to be looked up by there actual host name.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-04-17 11:05:06 -0600

darragh-oreilly gravatar image

updated 2014-04-21 14:03:13 -0600

Looks like this bug and blueprints internal-dns-resolution and external-dns-resolution.

edit flag offensive delete link more


If I have read that correctly, there is no way in openstack to override what neutron writes to the dnsmasq host file, without hacking the source code? This seems very strange. How do people normally deal with this issue. DNS as a service as I understand it is not available yet in a release.

radclif gravatar imageradclif ( 2014-04-19 11:20:36 -0600 )edit

Seems so. I don't know.

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-04-21 14:04:28 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-04-16 15:35:38 -0600

Seen: 1,291 times

Last updated: Apr 21 '14