#704803 libvirt-bin: Dnsmasq uses /etc/hosts from host which breaks on (at least) isolated networks #704803
- Package:
- libvirt-bin
- Source:
- libvirt
- Submitter:
- "Daniel Dickinson \(sole proprieter\)"
- Date:
- 2023-04-17 15:57:17 UTC
- Severity:
- normal
Because libvirt-bin dnsmasq instances uses hostnames and ip addresses from /etc/hosts on the host DNS requests for a hostname specified for a libvirt address (e.g. on an isolated network) also return the results from /etc/hosts. Particularly on an isolated network (where /etc/hosts ips are usually not valid) this breaks virtual hosts, or the host requesting an address from the libvirt-bin dnsmasq intending to only get a VM's address on an isolated network. /etc/hosts should not be used by libvirt-bin's dnsmasq instances IMO.
Hi, Due to the freeze this isn't going to be fixed for stable. Could you check the version in experimental, we did quiet some fixing in the dnsmasq area. Cheers, -- Guido
Another thing this breaks is resolving the IP of the host from a guest. Since by default the installer puts an entry for the host into /etc/hosts as 127.0.1.1, this is the address which will be returned if an attempt is made to lookup the host on a guest. I can't check the version in experimental right now, I'm only running stable sorry.