Ask Your Question
1

dynamic dns

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

anonymous user

Anonymous

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 192.168.0.11/24 brd 172.16.214.255 scope global eth0
inet6 fe80::f816:3eff:feae:4f/64 scope link tentative dadfailed 
   valid_lft forever preferred_lft forever
[root@vm-5 ~]# hostname
vm-5

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:

<mac>,host-192-168-0-5.testvm,192.168.0.5
<mac>,host-192-168-0-6.testvm,192.168.0.6
<mac>,host-192-168-0-7.testvm,192.168.0.7
<mac>,host-192-168-0-8.testvm,192.168.0.8
<mac>,host-192-168-0-11.testvm,192.168.0.11

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

nslookup 192.168.0.11 192.168.0.5
Server:     192.168.0.5
Address:    192.168.0.5#53

11.0.168.192.in-addr.arpa   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 192.168.0.5 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
0

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

darragh-oreilly gravatar image

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

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

edit flag offensive delete link more

Comments

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 -0500 )edit

Seems so. I don't know.

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

3 followers

Stats

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

Seen: 1,201 times

Last updated: Apr 21 '14