From 739bd1460db8814d6b47194449de7a2647dd69ee Mon Sep 17 00:00:00 2001 From: Rene Mewissen Date: Mon, 22 Jul 2024 18:59:15 +0200 Subject: [PATCH] added additional options --- roles/nameserver/templates/powerdns-recursor-custom-config.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/nameserver/templates/powerdns-recursor-custom-config.j2 b/roles/nameserver/templates/powerdns-recursor-custom-config.j2 index 0bc5fc6..b19a6ce 100644 --- a/roles/nameserver/templates/powerdns-recursor-custom-config.j2 +++ b/roles/nameserver/templates/powerdns-recursor-custom-config.j2 @@ -1,6 +1,8 @@ allow-from = 192.168.1.0/24, 192.168.3.0/24, 172.16.0.0/24, 127.0.0.0/8 +dont-query = +forward-zones-recurse = universe.local=192.168.1.3 local-address = 127.0.0.1 {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}{% else %}{{ ansible_default_ipv4.address }}{% endif %} local-port = {% if pdns_recursor_lport is defined %}{{ pdns_recursor_lport }}{% else %}53{% endif %} -query-local-address = {{ ansible_default_ipv4.address }} {% if ansible_default_ipv6.address is defined %}, {{ ansible_default_ipv6.address }}{% endif %} \ No newline at end of file +query-local-address = {{ ansible_default_ipv4.address }} {% if ansible_default_ipv6.address is defined %}, {{ ansible_default_ipv6.address }}{% endif %} {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}{% endif %} \ No newline at end of file