Add external zones in nodelocaldns configuration (#5591)

Allows to configure additionnal zone for domains not resolved by `upstream_dns_servers`.
This commit is contained in:
bozzo
2020-03-14 14:26:34 +01:00
committed by GitHub
parent 980a4fa401
commit d69db3469e
3 changed files with 46 additions and 0 deletions

View File

@@ -8,6 +8,20 @@ metadata:
data:
Corefile: |
{% if nodelocaldns_external_zones is defined and nodelocaldns_external_zones|length > 0 %}
{% for block in nodelocaldns_external_zones %}
{{ block['zones'] | join(' ') }} {
errors
cache {{ block['cache'] | default(30) }}
reload
loop
bind {{ nodelocaldns_ip }}
forward . {{ block['nameservers'] | join(' ') }}
prometheus :9253
log
}
{% endfor %}
{% endif %}
{{ dns_domain }}:53 {
errors
cache {