I'm using libvirt to manage my VMs, but I don't need the dnsmasq DNS server that gets automatically started with the service as it conflicts with my acme-dns setup.

Is there a way to change disable the DNS server completely and use dnsmasq only for DHCP, or at least change the port on which dnsmasq is listening?

Editing /var/lib/libvirt/dnsmasq/default.conf has no point since it just get overridden, but when using sudo virsh net-edit default it's in a completely different format.


You can disable DNS for a network with <dns enable="no"/> in the network XML. See the documentation.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.