full-dns/templates/nsd.conf.j2

22 lines
679 B
Plaintext
Raw Normal View History

2020-08-03 19:25:51 +02:00
server:
server-count: {{ ansible_processor_vcpus|default(2) }}
{% if server.nsd_addr is defined -%}
2020-08-03 19:25:51 +02:00
ip-address: {{ server.nsd_addr }}
{% endif -%}
{% if server.nsd_addr6 is defined -%}
ip-address: {{ server.nsd_addr6 }}
{% endif -%}
2020-08-03 19:25:51 +02:00
ip-address: {{ server.vpn.address }}
{% if server.non_local_ip|default(False) -%}
ip-freebind: yes
{% endif -%}
2020-08-03 19:25:51 +02:00
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' }}
2020-08-03 19:25:51 +02:00
hide-version: yes
refuse-any: {{ server.refuse_any|default('yes') }}
log-only-syslog: yes
verbosity: {{ dns_server.verbosity }}
# vim: set ft=yaml: