summaryrefslogtreecommitdiffstats
path: root/recipes-core/bind/bind_virtualization.inc
diff options
context:
space:
mode:
authorXiangyu Chen <xiangyu.chen@windriver.com>2025-06-06 11:35:16 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2025-06-12 10:40:15 -0400
commite52eefb2f552474900e619a0b8a0ec1a8a0698ef (patch)
treea1e92e42cc3b52f55ca59122fd479f05f0accae1 /recipes-core/bind/bind_virtualization.inc
parent2dc87493ed5f1477ec2660ab7f5e62b80ace9bb4 (diff)
downloadmeta-virtualization-e52eefb2f552474900e619a0b8a0ec1a8a0698ef.tar.gz
lxc: don't allow named listening IPv6 address on lxcbrX network interface
lxc-net enabled the IPv6 by default since v6.0.0[1], when named enabled on system, the lxc-net which based on dnsmasq would fail to bind the IPv6 address on lxcbrX interface, that cause lxc cannot work correctly. LXC upstream changed the default v6 address again[2], we need to line up with upstream. Updated the lxc-net default v6 address to named.conf.option to tell named don't bind and listen that address. Ref: [1] https://github.com/lxc/lxc/commit/e8888344 [2] https://github.com/lxc/lxc/commit/31012d49 Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-core/bind/bind_virtualization.inc')
-rw-r--r--recipes-core/bind/bind_virtualization.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-core/bind/bind_virtualization.inc b/recipes-core/bind/bind_virtualization.inc
index f942d7ad..bb4e22b2 100644
--- a/recipes-core/bind/bind_virtualization.inc
+++ b/recipes-core/bind/bind_virtualization.inc
@@ -1,4 +1,4 @@
1# Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. 1# Tell named not to bother listening on the IP address that lxc and libvirtd handles itself.
2do_install:append() { 2do_install:append() {
3 sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc and libvirtd would take care of this address itself\n\tlisten-on { ! 10.0.3.1; ! 192.168.122.1; any;};\n\tlisten-on-v6 { ! fc11:4514:1919:810::1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options 3 sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc and libvirtd would take care of this address itself\n\tlisten-on { ! 10.0.3.1; ! 192.168.122.1; any;};\n\tlisten-on-v6 { ! fc42:5009:ba4b:5ab0::1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options
4} 4}