]>
Commit | Line | Data |
---|---|---|
d0e5f71f ML |
1 | # |
2 | # Unbound configuration file for IPFire | |
3 | # | |
4 | # The full documentation is available at: | |
e737776d | 5 | # https://nlnetlabs.nl/documentation/unbound/unbound.conf/ |
d0e5f71f ML |
6 | # |
7 | ||
8 | server: | |
b8f5eda8 MT |
9 | # Common Server Options |
10 | chroot: "" | |
11 | directory: "/etc/unbound" | |
12 | username: "nobody" | |
d0e5f71f | 13 | do-ip6: no |
d0e5f71f | 14 | |
b658a451 MT |
15 | # System Tuning |
16 | include: "/etc/unbound/tuning.conf" | |
17 | ||
b8f5eda8 | 18 | # Logging Options |
b8f5eda8 | 19 | use-syslog: yes |
d0e5f71f ML |
20 | log-time-ascii: yes |
21 | ||
22 | # Unbound Statistics | |
2e0660f9 | 23 | statistics-interval: 86400 |
d0e5f71f ML |
24 | extended-statistics: yes |
25 | ||
b658a451 | 26 | # Prefetching |
b8f5eda8 MT |
27 | prefetch: yes |
28 | prefetch-key: yes | |
29 | ||
30 | # Randomise any cached responses | |
31 | rrset-roundrobin: yes | |
32 | ||
33 | # Privacy Options | |
d0e5f71f ML |
34 | hide-identity: yes |
35 | hide-version: yes | |
d0e5f71f | 36 | |
b8f5eda8 MT |
37 | # DNSSEC |
38 | auto-trust-anchor-file: "/var/lib/unbound/root.key" | |
b8f5eda8 | 39 | val-log-level: 1 |
e737776d | 40 | log-servfail: yes |
b8f5eda8 MT |
41 | |
42 | # Hardening Options | |
d0e5f71f | 43 | harden-large-queries: yes |
b8f5eda8 | 44 | harden-referral-path: yes |
4e4128fa | 45 | use-caps-for-id: yes |
8a058583 | 46 | aggressive-nsec: yes |
d0e5f71f | 47 | |
ffc46751 MT |
48 | # TLS |
49 | tls-cert-bundle: /etc/ssl/certs/ca-bundle.crt | |
50 | ||
372576e0 MT |
51 | # EDNS Buffer Size (#12240) |
52 | edns-buffer-size: 1232 | |
d0e5f71f | 53 | |
ffba3c98 PM |
54 | # Harden against DNS cache poisoning |
55 | unwanted-reply-threshold: 1000000 | |
56 | ||
1b4d5ad9 | 57 | # Listen on all interfaces |
d4af85f2 | 58 | interface-automatic: yes |
1b4d5ad9 MT |
59 | interface: 0.0.0.0 |
60 | ||
3ddad158 MT |
61 | # Allow access from everywhere |
62 | access-control: 0.0.0.0/0 allow | |
d0e5f71f | 63 | |
b8f5eda8 | 64 | # Bootstrap root servers |
d0e5f71f ML |
65 | root-hints: "/etc/unbound/root.hints" |
66 | ||
b8f5eda8 MT |
67 | # Include DHCP leases |
68 | include: "/etc/unbound/dhcp-leases.conf" | |
d0e5f71f | 69 | |
6137797c MT |
70 | # Include hosts |
71 | include: "/etc/unbound/hosts.conf" | |
72 | ||
b8f5eda8 MT |
73 | # Include any forward zones |
74 | include: "/etc/unbound/forward.conf" | |
d0e5f71f | 75 | |
d0e5f71f ML |
76 | remote-control: |
77 | control-enable: yes | |
9bc17600 | 78 | control-use-cert: no |
d0e5f71f | 79 | control-interface: 127.0.0.1 |
d0e5f71f | 80 | |
b8f5eda8 MT |
81 | # Import any local configurations |
82 | include: "/etc/unbound/local.d/*.conf" |