Update unbound-install.sh

This commit is contained in:
Wim 2024-11-28 10:16:50 +01:00 committed by GitHub
parent ed6df66772
commit 0e460108c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,6 @@ server:
infra-cache-slabs: 8
key-cache-slabs: 8
serve-expired: yes
root-hints: /var/lib/unbound/root.hints
serve-expired-ttl: 3600
edns-buffer-size: 1232
prefetch: yes
@ -75,18 +74,12 @@ server:
access-control: 127.0.0.1/32 allow
chroot: ""
logfile: /var/log/unbound.log
verbosity: 1
log-queries: yes
statistics-interval: 0
extended-statistics: yes
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
chown unbound:unbound /var/log/unbound.log