diff --git a/roles/unbound/templates/unbound.conf.dna-gw01.home.foo.sh.j2 b/roles/unbound/templates/unbound.conf.dna-gw01.home.foo.sh.j2 index 1479483..9cd96f8 100644 --- a/roles/unbound/templates/unbound.conf.dna-gw01.home.foo.sh.j2 +++ b/roles/unbound/templates/unbound.conf.dna-gw01.home.foo.sh.j2 @@ -1,4 +1,11 @@ server: + # https://nlnetlabs.nl/documentation/unbound/howto-optimise/ + num-threads: {{ ansible_processor_cores }} + msg-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + rrset-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + infra-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + key-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + interface: 172.20.20.10@53 interface: 172.20.20.10@853 interface: 172.20.21.1@53 diff --git a/roles/unbound/templates/unbound.conf.dna-gw02.home.foo.sh.j2 b/roles/unbound/templates/unbound.conf.dna-gw02.home.foo.sh.j2 index c2f67ef..de8a3d4 100644 --- a/roles/unbound/templates/unbound.conf.dna-gw02.home.foo.sh.j2 +++ b/roles/unbound/templates/unbound.conf.dna-gw02.home.foo.sh.j2 @@ -1,4 +1,11 @@ server: + # https://nlnetlabs.nl/documentation/unbound/howto-optimise/ + num-threads: {{ ansible_processor_cores }} + msg-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + rrset-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + infra-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + key-cache-slabs: {{ ansible_processor_cores | int | pow(2) | int }} + interface: 172.20.20.10@53 interface: 172.20.20.10@853 interface: 172.20.21.2@53