Update unbound-install.sh

This commit is contained in:
Wim 2024-11-28 13:22:58 +01:00 committed by GitHub
parent f3a4e066d5
commit 0e17b613e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,22 +28,14 @@ msg_info "Installed Unbound"
cat <<EOF >/etc/unbound/unbound.conf.d/unbound.conf cat <<EOF >/etc/unbound/unbound.conf.d/unbound.conf
server: server:
verbosity: 0
interface: 0.0.0.0 interface: 0.0.0.0
port: 5335 port: 5335
do-ip6: no do-ip6: no
do-ip4: yes
do-udp: yes
do-tcp: yes
num-threads: 1
hide-identity: yes hide-identity: yes
hide-version: yes hide-version: yes
harden-referral-path: yes harden-referral-path: yes
cache-min-ttl: 300 cache-min-ttl: 300
cache-max-ttl: 14400 cache-max-ttl: 14400
rrset-cache-slabs: 8
infra-cache-slabs: 8
key-cache-slabs: 8
serve-expired: yes serve-expired: yes
serve-expired-ttl: 3600 serve-expired-ttl: 3600
prefetch: yes prefetch: yes
@ -65,8 +57,6 @@ server:
access-control: 127.0.0.1/32 allow access-control: 127.0.0.1/32 allow
chroot: "" chroot: ""
logfile: /var/log/unbound.log logfile: /var/log/unbound.log
log-queries: yes
extended-statistics: yes
EOF EOF
touch /var/log/unbound.log touch /var/log/unbound.log