]> git.ipfire.org Git - ipfire-2.x.git/blame - config/unbound/unbound.conf
unbound: Update to 1.6.0
[ipfire-2.x.git] / config / unbound / unbound.conf
CommitLineData
d0e5f71f
ML
1#
2# Unbound configuration file for IPFire
3#
4# The full documentation is available at:
5# https://www.unbound.net/documentation/unbound.conf.html
6#
7
8server:
b8f5eda8
MT
9 # Common Server Options
10 chroot: ""
11 directory: "/etc/unbound"
12 username: "nobody"
d0e5f71f
ML
13 port: 53
14 do-ip4: yes
15 do-ip6: no
16 do-udp: yes
17 do-tcp: yes
d0e5f71f 18 so-reuseport: yes
d0e5f71f
ML
19 do-not-query-localhost: yes
20
b658a451
MT
21 # System Tuning
22 include: "/etc/unbound/tuning.conf"
23
b8f5eda8 24 # Logging Options
d0e5f71f 25 verbosity: 1
b8f5eda8 26 use-syslog: yes
d0e5f71f 27 log-time-ascii: yes
b8f5eda8 28 log-queries: no
d0e5f71f
ML
29
30 # Unbound Statistics
b8f5eda8 31 statistics-interval: 0
d0e5f71f
ML
32 statistics-cumulative: yes
33 extended-statistics: yes
34
b658a451 35 # Prefetching
b8f5eda8
MT
36 prefetch: yes
37 prefetch-key: yes
38
39 # Randomise any cached responses
40 rrset-roundrobin: yes
41
42 # Privacy Options
d0e5f71f
ML
43 hide-identity: yes
44 hide-version: yes
d0e5f71f
ML
45 minimal-responses: yes
46
b8f5eda8
MT
47 # DNSSEC
48 auto-trust-anchor-file: "/var/lib/unbound/root.key"
49 val-permissive-mode: no
50 val-clean-additional: yes
51 val-log-level: 1
52
53 # Hardening Options
d0e5f71f 54 harden-glue: yes
b8f5eda8 55 harden-short-bufsize: no
d0e5f71f
ML
56 harden-large-queries: yes
57 harden-dnssec-stripped: yes
b8f5eda8 58 harden-referral-path: yes
d0e5f71f 59 harden-algo-downgrade: no
b8f5eda8 60 use-caps-for-id: no
d0e5f71f 61
1b4d5ad9 62 # Listen on all interfaces
d4af85f2 63 interface-automatic: yes
1b4d5ad9
MT
64 interface: 0.0.0.0
65
3ddad158
MT
66 # Allow access from everywhere
67 access-control: 0.0.0.0/0 allow
d0e5f71f 68
b8f5eda8 69 # Bootstrap root servers
d0e5f71f
ML
70 root-hints: "/etc/unbound/root.hints"
71
b8f5eda8
MT
72 # Include DHCP leases
73 include: "/etc/unbound/dhcp-leases.conf"
d0e5f71f 74
b8f5eda8
MT
75 # Include any forward zones
76 include: "/etc/unbound/forward.conf"
d0e5f71f 77
d0e5f71f
ML
78remote-control:
79 control-enable: yes
80 control-use-cert: yes
81 control-interface: 127.0.0.1
82 server-key-file: "/etc/unbound/unbound_server.key"
83 server-cert-file: "/etc/unbound/unbound_server.pem"
84 control-key-file: "/etc/unbound/unbound_control.key"
85 control-cert-file: "/etc/unbound/unbound_control.pem"
d0e5f71f 86
b8f5eda8
MT
87# Import any local configurations
88include: "/etc/unbound/local.d/*.conf"