diff options
author | Xiangyu Chen <xiangyu.chen@windriver.com> | 2024-03-12 18:06:19 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-03-15 17:17:20 +0000 |
commit | b8d6bd833e9086fcde427583d4543cde51e1374e (patch) | |
tree | 396319fff4a9027994b1c8a7036d3274b5b622b5 /recipes-core | |
parent | c4523d341e5cf05e5bc1fe51b1243a7273fc7099 (diff) | |
download | meta-virtualization-b8d6bd833e9086fcde427583d4543cde51e1374e.tar.gz |
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>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/bind/bind_virtualization.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-core/bind/bind_virtualization.inc b/recipes-core/bind/bind_virtualization.inc index dc63b2aa..a6e39049 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 handles itself. | 1 | # Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. |
2 | do_install:append() { | 2 | do_install:append() { |
3 | 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 | 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,' ${D}${sysconfdir}/bind/named.conf.options |
4 | } | 4 | } |