Ask Your Question

Quantum, DNSMasq, and resolv.conf

asked 2013-09-13 22:13:48 -0500

jskains gravatar image

We moved from a FlatDHCP system to a GRE/Quantum based system. Before, the VM's would get a DNS server controlled my dnsmasq, but then dnsmasq would forward the information to the set external DNS servers. In this scheme, each VM would have a resolvable hostname with the local dnsmasq server.

When we moved to Quantum, following the instructions on , it seems dnsmasq now passes the external DNS to the VMs, which of course does not have a resolvable address for the VMs, and the VM's hang on different functions with "unable to resolve <hostname>". The /etc/hosts file only has a "localhost" entry and /etc/resolv.conf has just the external DNS in this case being How do I get Quantum to use dnsmasq for a DNS server that manages VM names and IPs like in the flatDHCP method?</hostname>

edit retag flag offensive close merge delete


I am seeing the same issue with Neutron in Icehouse. Were you able to get around this issue?

opstkusr gravatar imageopstkusr ( 2014-11-06 13:45:44 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-16 07:13:50 -0500

Zollner Robert gravatar image

At least on havana and icehouse , dhcp neutron agent is preventing dnsmasq to use nameservers from /etc/resolv.conf (using the --no-resolv parameter)

Default behaivior of the dhcp agent is to advertise itself as the dns server to the virtual machines. If you get dns trough dhcp, it was most like manually configured somewhere.

1) You can override this using horizon or cli for every subnet:

neutron subnet-(update|create) --dns-nameservers list=true ...

2) Or you can specify global dnsmasq options in the file defined with "dnsmasq_config_file" parameter of the dhcp agent config.

dhcp-option=6, x.x.x.x, y.y.y.y

Upstream DNS forwarders are defined in the dhcp agent config with dnsmasq_dns_servers=, parameter

edit flag offensive delete link more


and if dnsmasq is running in a namespace, then the subnet will need to be attached to a router that is connected to an external network.

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-12-16 13:31:53 -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



Asked: 2013-09-13 22:13:48 -0500

Seen: 1,238 times

Last updated: Dec 16 '14