From 11a6700cdce4489ddc66491cac30b1558b16462f Mon Sep 17 00:00:00 2001 From: Wim <11030068+wimb0@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:59:28 +0100 Subject: [PATCH] Update unbound-install.sh --- install/unbound-install.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/install/unbound-install.sh b/install/unbound-install.sh index aec59eb4..bf5ec7f4 100644 --- a/install/unbound-install.sh +++ b/install/unbound-install.sh @@ -13,8 +13,18 @@ setting_up_container network_check update_os +msg_info "Installing Dependencies" +$STD apt-get install -y \ + sudo \ + curl \ + mc +msg_ok "Installed Dependencies" + msg_info "Installing Unbound" -$STD apt-get install -y unbound unbound-host +$STD apt-get install -y \ + unbound \ + unbound-host +msg_info "Installed Unbound" cat </etc/unbound/unbound.conf.d/unbound-lxe.conf server: @@ -71,7 +81,9 @@ server: harden-below-nxdomain: yes EOF +# Update Root hints from Internic (This file holds the information on root name servers needed to initialize cache of Internet domain name servers) wget -qO /var/lib/unbound/root.hints https://www.internic.net/domain/named.root +# Set unbound user as owner of the root hints file chown unbound:unbound /var/lib/unbound/root.hints touch /var/log/unbound.log @@ -100,6 +112,7 @@ EOF msg_info "Restarting Logrotate" systemctl restart logrotate +msg_ok "Restarted Logrotate" motd_ssh customize