]> git.ipfire.org Git - ipfire-2.x.git/blob - config/unbound/unbound.conf
012beab54dc48c70a29b6d9b6969479ec37ef2e6
[ipfire-2.x.git] / config / unbound / unbound.conf
1 #
2 # Unbound configuration file for IPFire
3 #
4 # The full documentation is available at:
5 # https://nlnetlabs.nl/documentation/unbound/unbound.conf/
6 #
7
8 server:
9 # Common Server Options
10 chroot: ""
11 directory: "/etc/unbound"
12 username: "nobody"
13 do-ip6: no
14
15 # System Tuning
16 include: "/etc/unbound/tuning.conf"
17
18 # Logging Options
19 use-syslog: yes
20 log-time-ascii: yes
21
22 # Unbound Statistics
23 statistics-interval: 86400
24 extended-statistics: yes
25
26 # Prefetching
27 prefetch: yes
28 prefetch-key: yes
29
30 # Privacy Options
31 hide-identity: yes
32 hide-version: yes
33
34 # DNSSEC
35 auto-trust-anchor-file: "/var/lib/unbound/root.key"
36 val-log-level: 1
37 log-servfail: yes
38
39 # Hardening Options
40 harden-large-queries: yes
41 harden-referral-path: yes
42
43 # TLS
44 tls-cert-bundle: /etc/ssl/certs/ca-bundle.crt
45
46 # Harden against DNS cache poisoning
47 unwanted-reply-threshold: 1000000
48
49 # Listen on all interfaces
50 interface-automatic: yes
51 interface: 0.0.0.0
52
53 # Allow access from everywhere
54 access-control: 0.0.0.0/0 allow
55
56 # Timeout behaviour
57 infra-keep-probing: yes
58
59 # Bootstrap root servers
60 root-hints: "/etc/unbound/root.hints"
61
62 # Include DHCP leases
63 include: "/etc/unbound/dhcp-leases.conf"
64
65 # Include hosts
66 include: "/etc/unbound/hosts.conf"
67
68 # Include any forward zones
69 include: "/etc/unbound/forward.conf"
70
71 remote-control:
72 control-enable: yes
73 control-use-cert: no
74 control-interface: 127.0.0.1
75
76 # Import any local configurations
77 include: "/etc/unbound/local.d/*.conf"