mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00

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>
5 lines
269 B
PHP
5 lines
269 B
PHP
# 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
|
|
}
|