full-dns/templates/nsd.conf.j2
Blallo 3f58459e78
Update configuration and logic. Support ipv6.
Now ipv6 is supported using `public_ipv6` in the `server` block and
refactoring the configuration logic.
Also fix unbound configuration to allow recursive queries from
resolvers.
2020-08-19 18:47:56 +02:00

22 lines
679 B
Django/Jinja

server:
server-count: {{ ansible_processor_vcpus|default(2) }}
{% if server.nsd_addr is defined -%}
ip-address: {{ server.nsd_addr }}
{% endif -%}
{% if server.nsd_addr6 is defined -%}
ip-address: {{ server.nsd_addr6 }}
{% endif -%}
ip-address: {{ server.vpn.address }}
{% if server.non_local_ip|default(False) -%}
ip-freebind: yes
{% endif -%}
port: {{ server.nsd_port }}
do-ip4: {{ 'yes' if server.nsd_addr is defined else 'no' }}
do-ip6: {{ 'yes' if server.nsd_addr6 is defined else 'no' }}
hide-version: yes
refuse-any: {{ server.refuse_any|default('yes') }}
log-only-syslog: yes
verbosity: {{ dns_server.verbosity }}
# vim: set ft=yaml: