mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
unbound.conf: Do not set defaults explicitly
In order to keep configuration files small and easy to review/audit, omitting defaults makes more sense than configure them explicitly (have changed my mind here). Unbound comes with a good default confiuration, and we should only make changes when they are necessary. In addition, this patch updates the documentation's URL to the current one. Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Cc: Michael Tremer <michael.tremer@ipfire.org> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
80bed5817d
commit
e737776db5
@@ -2,7 +2,7 @@
|
|||||||
# Unbound configuration file for IPFire
|
# Unbound configuration file for IPFire
|
||||||
#
|
#
|
||||||
# The full documentation is available at:
|
# The full documentation is available at:
|
||||||
# https://www.unbound.net/documentation/unbound.conf.html
|
# https://nlnetlabs.nl/documentation/unbound/unbound.conf/
|
||||||
#
|
#
|
||||||
|
|
||||||
server:
|
server:
|
||||||
@@ -10,26 +10,17 @@ server:
|
|||||||
chroot: ""
|
chroot: ""
|
||||||
directory: "/etc/unbound"
|
directory: "/etc/unbound"
|
||||||
username: "nobody"
|
username: "nobody"
|
||||||
port: 53
|
|
||||||
do-ip4: yes
|
|
||||||
do-ip6: no
|
do-ip6: no
|
||||||
do-udp: yes
|
|
||||||
do-tcp: yes
|
|
||||||
so-reuseport: yes
|
|
||||||
do-not-query-localhost: yes
|
|
||||||
|
|
||||||
# System Tuning
|
# System Tuning
|
||||||
include: "/etc/unbound/tuning.conf"
|
include: "/etc/unbound/tuning.conf"
|
||||||
|
|
||||||
# Logging Options
|
# Logging Options
|
||||||
verbosity: 1
|
|
||||||
use-syslog: yes
|
use-syslog: yes
|
||||||
log-time-ascii: yes
|
log-time-ascii: yes
|
||||||
log-queries: no
|
|
||||||
|
|
||||||
# Unbound Statistics
|
# Unbound Statistics
|
||||||
statistics-interval: 86400
|
statistics-interval: 86400
|
||||||
statistics-cumulative: yes
|
|
||||||
extended-statistics: yes
|
extended-statistics: yes
|
||||||
|
|
||||||
# Prefetching
|
# Prefetching
|
||||||
@@ -42,26 +33,17 @@ server:
|
|||||||
# Privacy Options
|
# Privacy Options
|
||||||
hide-identity: yes
|
hide-identity: yes
|
||||||
hide-version: yes
|
hide-version: yes
|
||||||
qname-minimisation: yes
|
|
||||||
minimal-responses: yes
|
|
||||||
|
|
||||||
# DNSSEC
|
# DNSSEC
|
||||||
auto-trust-anchor-file: "/var/lib/unbound/root.key"
|
auto-trust-anchor-file: "/var/lib/unbound/root.key"
|
||||||
val-permissive-mode: no
|
|
||||||
val-clean-additional: yes
|
|
||||||
val-log-level: 1
|
val-log-level: 1
|
||||||
|
log-servfail: yes
|
||||||
|
|
||||||
# Hardening Options
|
# Hardening Options
|
||||||
harden-glue: yes
|
|
||||||
harden-short-bufsize: no
|
|
||||||
harden-large-queries: yes
|
harden-large-queries: yes
|
||||||
harden-dnssec-stripped: yes
|
|
||||||
harden-below-nxdomain: yes
|
|
||||||
harden-referral-path: yes
|
harden-referral-path: yes
|
||||||
harden-algo-downgrade: no
|
|
||||||
use-caps-for-id: yes
|
use-caps-for-id: yes
|
||||||
aggressive-nsec: yes
|
aggressive-nsec: yes
|
||||||
qname-minimisation: yes
|
|
||||||
|
|
||||||
# TLS
|
# TLS
|
||||||
tls-cert-bundle: /etc/ssl/certs/ca-bundle.crt
|
tls-cert-bundle: /etc/ssl/certs/ca-bundle.crt
|
||||||
|
|||||||
Reference in New Issue
Block a user