mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
lxc: Make named avoid listening on lxc network interface
lxc-net wants to take care of DNS itself using dnsmasq, while named in bind does the same thing on all network interfaces by default and causes the following error. dnsmasq: failed to create listening socket for 10.0.3.1: Address already in use Failed to setup lxc-net. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
34355aa5ac
commit
cea8ca7c9c
1
recipes-core/bind/bind_%.bbappend
Normal file
1
recipes-core/bind/bind_%.bbappend
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${BPN}_virtualization.inc', '', d)}
|
4
recipes-core/bind/bind_virtualization.inc
Normal file
4
recipes-core/bind/bind_virtualization.inc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Tell named not to bother listening on the IP address that lxc handles itself.
|
||||||
|
do_install_append() {
|
||||||
|
sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc would take care of this address itself\n\tlisten-on { ! 10.0.3.1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user