Add a Capnet dhcp Dnsmasq wrapper to stop DNS recursive resolution.
Capnet networks cannot get to the external world. However, the default Cloudlab/OpenStack dnsmasq arrangment (of course) specifies an external resolver. This slows all kinds of queries from the VMs, and slows bootup, while the local resolver waits for the remote one to timeout. Dnsmasq in openstack doesn't give up per-network config ability, so we add some of our own. There is now a custom capnet dnsmasq config file sans external resolver; and the wrapper class strips out any --server CLI options that the base class might have added due to the dhcp/dnsmasq config file opts. It warns when it does this. We may not want that behavior in the future; hopefully we remember to get rid of it then. But there's no other way to allow recursive public resolution for non-capnet networks, and then disallow it for Capnet networks, without this.
Showing with 71 additions and 1 deletion