This bug is still present in ubuntu 20.04.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1326536
Title:
libvirt's dnsmasq setup will read /etc/hosts on the host, resulting in
Right, my hack is almost the same as --no-hosts, it just doesn't require
patching libvirt.
Do you need that entry in your /etc/hosts? If you have a real DNS name,
you might not need it at all. If not, but you have a static IP address,
you could use that in the hosts file instead of 127.0.1.1.
--
Thanks Nathan to share you workaround as well, but IMHO it is "just as
good" as the --no-hosts flag. In that I mean while it prevent the reply
of 127.0.1.1 for the Host it also stops any other entry in Hosts to be
used (which users might want or even already rely on).
Darragh, Jason and Serge trie
I had the same problem (on 16.04.02) and came up with a rather dirty,
but quick and effective workaround.
Simply remove the libvirt-dnsmasq user's ability to read /etc/hosts:
sudo setfacl -m user:libvirt-dnsmasq:--- /etc/hosts
The libvirt dnsmasq instances will syslog a complaint when they s
Did some more testing (found how to adjust libvirts dnsmasq.conf and
restart it to pick up conf changes):
To test, get the dnsmasq pid using the vagrant-libvirt.conf config and check
the environment set for the process with:
sudo cat /proc/2586/environ
VIR_BRIDGE_NAME=virbr0
After killing the re
Never mind, I took some time to patch libvirt to see if it would have
any effect. Appears to only apply to the records dnsmasq receives the
DNS queries it makes, doesn't ignore any addresses read in from
/etc/hosts.
--
You received this bug notification because you are a member of Ubuntu
Touch se
Perhaps a change could be added to ignore 127.0.0.1 and 127.0.1.1
addresses returned by default?
Dnsmasq supports such an option, though it would need to be added to
libvirt as it regerates the dnsmasq conf file used each time a network
is started.
Add following by default to dnsmasq.conf genera
7 matches
Mail list logo