From fd91ccc844677fb1b0cf3194e5542e36b6c36009 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 3 Sep 2017 17:48:25 -0700 Subject: [PATCH] Update the unbound anchor key This helps the unbound recover from any previous out of disk space situation. part of #269 --- setup/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/start.sh b/setup/start.sh index 2b4d720a0..5f559b845 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -122,6 +122,8 @@ echo "==> Setting up unbound" # We do not use dnsmasq because it is not a recursive resolver and defaults to the value in the interfaces file (which is Google DNS!) # We listen on 0.0.0.0 because there is no way control ordering of docker (which creates the 172.18.0.0/16) and unbound echo -e "server:\n\tinterface: 0.0.0.0\n\tdo-ip6: no\n\taccess-control: 127.0.0.1 allow\n\taccess-control: 172.18.0.1/16 allow\n\tcache-max-negative-ttl: 30\n\tcache-max-ttl: 300" > /etc/unbound/unbound.conf.d/cloudron-network.conf +# update the root anchor after a out-of-disk-space situation (see #269) +unbound-anchor -a /var/lib/unbound/root.key echo "==> Adding systemd services" cp -r "${script_dir}/start/systemd/." /etc/systemd/system/