mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
libvirtd: don't allow named.service listening on libvirt network interface
libvirtd has its own network interface named virbr0, and it using dnsmasq to setup the DNS. the named.service also listen interface and try to bind the port 59 on virtbr0, that cause dnsmasq report following error: dnsmasq: failed to create listening socket for 192.168.122.1: Address already in use Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
c4523d341e
commit
b8d6bd833e
|
@ -1,4 +1,4 @@
|
|||
# Tell named not to bother listening on the IP address that lxc handles itself.
|
||||
# Tell named not to bother listening on the IP address that lxc and libvirtd 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
|
||||
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,' ${D}${sysconfdir}/bind/named.conf.options
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user