[lxc-devel] [lxc/lxc] 60a43d: make lxc-net hermetic w.r.t. existing dnsmasq config

Stéphane Graber noreply at github.com
Mon Jan 11 14:05:41 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 60a43d5564e1b6f076c2234b538c5e5fead5f726
      https://github.com/lxc/lxc/commit/60a43d5564e1b6f076c2234b538c5e5fead5f726
  Author: Motiejus Jakštys <motiejus at jakstys.lt>
  Date:   2021-01-11 (Mon, 11 Jan 2021)

  Changed paths:
    M config/init/common/lxc-net.in

  Log Message:
  -----------
  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 at jakstys.lt>


  Commit: 092529eaef5d72af8b5c8865e6f4fbecb834b23c
      https://github.com/lxc/lxc/commit/092529eaef5d72af8b5c8865e6f4fbecb834b23c
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2021-01-11 (Mon, 11 Jan 2021)

  Changed paths:
    M config/init/common/lxc-net.in

  Log Message:
  -----------
  Merge pull request #3617 from motiejus/lxc-net-dnsmasq

make lxc-net's dnsmasq hermetic


Compare: https://github.com/lxc/lxc/compare/5e4dddcf9b2f...092529eaef5d


More information about the lxc-devel mailing list