#704803 libvirt-bin: Dnsmasq uses /etc/hosts from host which breaks on (at least) isolated networks

Package:
libvirt-bin
Source:
libvirt
Submitter:
"Daniel Dickinson \(sole proprieter\)"
Date:
2023-04-17 15:57:17 UTC
Severity:
normal
#704803#5
Date:
2013-04-06 03:19:19 UTC
From:
To:
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.

#704803#10
Date:
2013-04-06 12:35:14 UTC
From:
To:
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

#704803#15
Date:
2013-08-04 03:19:58 UTC
From:
To:
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.