]> git.proxmox.com Git - mirror_lxc.git/commit
make lxc-net hermetic w.r.t. existing dnsmasq config
authorMotiejus Jakštys <motiejus@jakstys.lt>
Mon, 11 Jan 2021 10:49:35 +0000 (12:49 +0200)
committerMotiejus Jakštys <motiejus@jakstys.lt>
Mon, 11 Jan 2021 10:49:35 +0000 (12:49 +0200)
commit60a43d5564e1b6f076c2234b538c5e5fead5f726
tree7b3df223f68aa5ce00d8ad946bbba6d0246181de
parent5e4dddcf9b2f84f52f71095f2e8b8c59872ec861
make lxc-net hermetic w.r.t. existing dnsmasq config

lxc's dnsmasq will try to read system's dnsmasq if `--conf-file` is not
specified. This is likely not desirable, as lxc's dnsmasq should be
self-contained.

On my system the conflicting options are `--bind-interfaces` and
`--bind-dynamic`, since the same host is doing other DNS-y things
unrelated to lxc.

This is an incompatible change, since lxc's dnsmasq will stop honoring
system's `/etc/dnsmasq.conf`, and some systems may be relying on it.
Given that, I believe it should not depend on it by default, since
dnsmasq is lxc's implementation detail. However, if the user desires,
the old behavior could be brought back by setting
`LXC_DHCP_CONFILE=/etc/dnsmasq.conf` in `/etc/default/lxc-net`.

Signed-off-by: Motiejus Jakštys <motiejus@jakstys.lt>
config/init/common/lxc-net.in