WIP: new z9 ccchh router #98
2 changed files with 18 additions and 12 deletions
unbound(role): fix unbound config template
- fix some indentation problems - fix access control - fix remote control unix socket and thrust anchor file (because debain appamour ist annoying) - add unbound-anchor package
commit
aec4ea4090
|
|
@ -6,6 +6,11 @@
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: unbound
|
name: unbound
|
||||||
|
|
||||||
|
- name: install unbound-anchor
|
||||||
|
become: true
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: unbound-anchor
|
||||||
|
|
||||||
|
bitwhisker marked this conversation as resolved
Outdated
|
|||||||
- name: ensure correct directory permissions
|
- name: ensure correct directory permissions
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
|
||||||
|
|
@ -4,26 +4,26 @@ server:
|
||||||
{% if unbound_enable_dnssec -%}
|
{% if unbound_enable_dnssec -%}
|
||||||
# location of the trust anchor file that enables DNSSEC
|
# location of the trust anchor file that enables DNSSEC
|
||||||
# this file is generated by the `unbound-anchor` command
|
# this file is generated by the `unbound-anchor` command
|
||||||
|
bitwhisker marked this conversation as resolved
Outdated
june
commented
Is this still relevant on Debian? Again, we don't use Arch Linux in our infra. Is this still relevant on Debian? Again, we don't use Arch Linux in our infra.
|
|||||||
auto-trust-anchor-file: "/etc/unbound/trusted-key.key"
|
trust-anchor-file: "/usr/share/dns/root.key"
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
# num of threads
|
# num of threads
|
||||||
num-threads: {{ unbound_thread_count | default(ansible_facts['processor_vcpus']) }}
|
num-threads: {{ unbound_thread_count | default(ansible_facts['processor_vcpus']) }}
|
||||||
|
|
||||||
# more cache memory
|
# more cache memory
|
||||||
rrset-cache-size: 60m
|
rrset-cache-size: 60m
|
||||||
msg-cache-size: 30m
|
msg-cache-size: 30m
|
||||||
|
bitwhisker marked this conversation as resolved
Outdated
june
commented
Are those all the CPUs we use? Might it make sense to have this configurable or at least change the comment? Are those all the CPUs we use? Might it make sense to have this configurable or at least change the comment?
|
|||||||
|
|
||||||
# prefetch to keep the cache up to date
|
# prefetch to keep the cache up to date
|
||||||
prefetch: yes
|
prefetch: yes
|
||||||
|
|
||||||
# fetch the DNSKEYs earlier in the validation process, when a DS record is encountered
|
# fetch the DNSKEYs earlier in the validation process, when a DS record is encountered
|
||||||
prefetch-key: yes
|
prefetch-key: yes
|
||||||
|
|
||||||
# Faster UDP with multithreading (only on Linux).
|
# Faster UDP with multithreading (only on Linux).
|
||||||
so-reuseport: yes
|
so-reuseport: yes
|
||||||
|
|
||||||
# disable special large send buffer handling and just use kernel defaults
|
# disable special large send buffer handling and just use kernel defaults
|
||||||
so-sndbuf: 0
|
so-sndbuf: 0
|
||||||
|
|
||||||
# send minimal amount of information to upstream servers to enhance privacy
|
# send minimal amount of information to upstream servers to enhance privacy
|
||||||
|
|
@ -36,7 +36,7 @@ server:
|
||||||
|
|
||||||
# addresses from the IP range that are allowed to connect to the resolver
|
# addresses from the IP range that are allowed to connect to the resolver
|
||||||
{% for i in unbound_access_control -%}
|
{% for i in unbound_access_control -%}
|
||||||
access-control: {{ i }}
|
access-control: {{ i }} allow
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
|
||||||
{% for i in unbound_private_domain -%}
|
{% for i in unbound_private_domain -%}
|
||||||
|
|
@ -51,7 +51,8 @@ server:
|
||||||
|
|
||||||
remote-control:
|
remote-control:
|
||||||
control-enable: {{ "yes" if unbound_enable_unbound_control else "no" }}
|
control-enable: {{ "yes" if unbound_enable_unbound_control else "no" }}
|
||||||
control-interface: /run/unbound-control.sock
|
control-interface: "/run/unbound.ctl" # debian appamour does not allow any other path!!!
|
||||||
|
control-use-cert: no
|
||||||
|
|
||||||
|
|
||||||
# configure some zones for which this resolver will act authoritatively
|
# configure some zones for which this resolver will act authoritatively
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue
There is no
bindpackage on Debian and we already installdigin thebase_configrole:- dnsutils