mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 08:19:17 +00:00
Update unbound-install.sh
This commit is contained in:
parent
10d2ba882b
commit
11a6700cdc
@ -13,8 +13,18 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt-get install -y \
|
||||||
|
sudo \
|
||||||
|
curl \
|
||||||
|
mc
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Unbound"
|
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 <<EOF >/etc/unbound/unbound.conf.d/unbound-lxe.conf
|
cat <<EOF >/etc/unbound/unbound.conf.d/unbound-lxe.conf
|
||||||
server:
|
server:
|
||||||
@ -71,7 +81,9 @@ server:
|
|||||||
harden-below-nxdomain: yes
|
harden-below-nxdomain: yes
|
||||||
EOF
|
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
|
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
|
chown unbound:unbound /var/lib/unbound/root.hints
|
||||||
|
|
||||||
touch /var/log/unbound.log
|
touch /var/log/unbound.log
|
||||||
@ -100,6 +112,7 @@ EOF
|
|||||||
|
|
||||||
msg_info "Restarting Logrotate"
|
msg_info "Restarting Logrotate"
|
||||||
systemctl restart logrotate
|
systemctl restart logrotate
|
||||||
|
msg_ok "Restarted Logrotate"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
Loading…
Reference in New Issue
Block a user