Domain Name System – How to Disable or Change Port of dnsmasq Service in Libvirt

domain-name-systemkvm-virtualizationlibvirt

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.

Best Answer

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

Related Topic