From 8657599a1325cd22069afc78cdda169849856c54 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 5 Nov 2024 22:59:22 +0100 Subject: [PATCH] dns: fix resolving v6 only resources --- roles/dns_resolver/templates/recursor.conf.j2 | 6 ++---- roles/dns_split/templates/recursor.conf.j2 | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/roles/dns_resolver/templates/recursor.conf.j2 b/roles/dns_resolver/templates/recursor.conf.j2 index c98834a..90bf31c 100644 --- a/roles/dns_resolver/templates/recursor.conf.j2 +++ b/roles/dns_resolver/templates/recursor.conf.j2 @@ -27,11 +27,9 @@ local-address=127.0.0.1 local-port=5353 ################################# -# query-local-address6 Send out local IPv6 queries from this address or addresses. Disabled by default, which also disables outgoing +# query-local-address Source IP address for sending queries # -{% if global_ipv6 is defined %} -query-local-address6={{ global_ipv6 | ipaddr('address') }} -{% endif %} +query-local-address=:: ################################# # quiet Suppress logging of questions and answers diff --git a/roles/dns_split/templates/recursor.conf.j2 b/roles/dns_split/templates/recursor.conf.j2 index d1a1c6c..8691589 100644 --- a/roles/dns_split/templates/recursor.conf.j2 +++ b/roles/dns_split/templates/recursor.conf.j2 @@ -32,6 +32,11 @@ local-address=127.0.0.1 # local-port=5353 +################################# +# query-local-address Source IP address for sending queries +# +query-local-address=:: + ################################# # quiet Suppress logging of questions and answers #