From deea56bd50340ec026102f6c55e65833665b4b80 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sun, 4 Apr 2021 07:31:59 +0200 Subject: [PATCH] new: [host] add explicit installation of ``bind9`` This is required in debian 10 Signed-off-by: Valentin Lab --- precise/host/hooks/install.d/80-dns-waterfall.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/precise/host/hooks/install.d/80-dns-waterfall.sh b/precise/host/hooks/install.d/80-dns-waterfall.sh index 817ed52..847d705 100755 --- a/precise/host/hooks/install.d/80-dns-waterfall.sh +++ b/precise/host/hooks/install.d/80-dns-waterfall.sh @@ -8,7 +8,7 @@ HOST_EXTERNAL_DEVICE=${HOST_EXTERNAL_DEVICE:-eth0} -apt-get install -y bind9 dnsmasq +apt-get install -y bind9 dnsmasq bind9-host > /etc/default/lxc sed -ri "s%10\.0\.3\.%$LXC_NETWORK.%g;s%^#LXC_DHCP_CONFILE=%LXC_DHCP_CONFILE=%g" /etc/default/lxc-net @@ -47,11 +47,15 @@ no-resolv mkdir /var/log/named -p && chown bind:bind /var/log/named -/etc/init.d/bind9 restart -/etc/init.d/dnsmasq restart +/etc/init.d/bind9 stop +/etc/init.d/dnsmasq stop + service lxc restart service lxc-net restart ## had to 'brctl delbr lxcbr0' myself +/etc/init.d/bind9 start +/etc/init.d/dnsmasq start + cp /etc/resolv.conf{,.orig} cat < /etc/resolv.conf nameserver 127.0.0.1