forked from bodsch/ansible-collection-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yml
More file actions
66 lines (58 loc) · 1.76 KB
/
main.yml
File metadata and controls
66 lines (58 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
unbound_dependencies:
- dnsutils
unbound_environment_file: /etc/default/unbound
unbound_config_server_defaults:
verbosity: 2
statistics-interval: 240
use-syslog: "yes"
log-queries: "yes"
logfile: "" # /var/log/unbound.log"
num-threads: 2
directory: "/etc/unbound"
username: "unbound"
interface: 0.0.0.0
do-ip4: 'yes'
do-ip6: 'no'
do-udp: 'yes'
do-tcp: 'yes'
access-control:
- '127.0.0.0/8 allow'
cache-min-ttl: 5
cache-max-negative-ttl: 60
root-hints: "/etc/unbound/root.hints"
hide-identity: 'yes'
hide-version: 'yes'
prefetch: 'yes'
max-udp-size: 4096
msg-buffer-size: 65552
unwanted-reply-threshold: 10000
ipsecmod-enabled: 'no'
# trust-anchor-signaling: 'yes'
# trust-anchor-file: ""
auto-trust-anchor-file: "/var/lib/unbound/root.key"
qname-minimisation: 'yes'
unbound_config_stub_zone_defaults: {}
unbound_config_forward_zone_defaults:
name: "."
# definitely censor free & log free with DNSSEC Support:
forward_addrs:
- 84.200.69.80 # DNS Watch
- 84.200.70.40 # DNS Watch
- 77.109.148.136 # Xiala.net
- 77.109.148.137 # Xiala.net
- 91.239.100.100 # censurfridns.dk
- 89.233.43.71 # censurfridns.dk
unbound_config_remote_control_defaults:
server-key-file: "{{ unbound_certs.server.key_file }}"
server-cert-file: "{{ unbound_certs.server.cert_file }}"
control-key-file: "{{ unbound_certs.control.key_file }}"
control-cert-file: "{{ unbound_certs.control.cert_file }}"
unbound_config_cachedb_defaults: {}
unbound_certs:
server:
key_file: "{{ unbound_conf_dir }}/unbound_server.key"
cert_file: "{{ unbound_conf_dir }}/unbound_server.pem"
control:
key_file: "{{ unbound_conf_dir }}/unbound_control.key"
cert_file: "{{ unbound_conf_dir }}/unbound_control.pem"