Hi all, I went through the docs but could not find a way to pass the -h OR --no-hosts option to dnsmasq via libvirt xml Is there a way to do this via xml ? please can someone help. Thanks
Hi I know that this is not you question but is it possible to set "no-hosts" in /etc/dnsmasq.conf ? On 27/12/17 16:24, Bhasker C V wrote:> Hi all, > I went through the docs but could not find a way to pass the > -h OR --no-hosts > option to dnsmasq via libvirt xml > > Is there a way to do this via xml ? please can someone help. > > Thanks > > _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users
On 12/27/2017 11:24 AM, Bhasker C V wrote:> Hi all, > I went through the docs but could not find a way to pass the > -h OR --no-hosts > option to dnsmasq via libvirt xml > > Is there a way to do this via xml ? please can someone help.No, there isn't. If you need to customize the dhcp configuration for a libvirt network beyond the items that are described in https://libvirt.org/formatnetwork.html you will need to disable the dnsmasq started for the network by libvirt and setup your own dnsmasq in the host's own system config (outside of libvirt). You can disable libvirt's dnsmasq for a libvirt network by removing the <dhcp> element from its config and adding "<dns enable='no'/>" (using "virsh net-edit" followed by "virsh net-destroy" and "virsh net-start"),
On 12/27/2017 02:15 PM, Radostin Stoyanov wrote:> Hi > > I know that this is not you question but is it possible to set > "no-hosts" in /etc/dnsmasq.conf ?No. the conf files used by dnsmasq instances started by libvirt are transient files created by libvirt at runtime each time the network is restarted. (Modifying the conf file after dnsmasq has been started has no effect.)