blob: ff5b39fbaf39c543630fa3e72db52fd0d30e598c [file] [log] [blame]
{#
SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
SPDX-License-Identifier: Apache-2.0
#}
# nsd templates/nsd.conf.j2 - {{ ansible_managed }}
server:
hide-version: yes
## bind to a specific address/port
ip-address: {{ nsd_ip4 }}
ip4-only: yes
port: {{ nsd_port }}
server-count: 1
zonesdir: {{ nsd_zones_dir }}
remote-control:
control-enable: yes
# zonefiles to load
{% for key, value in dns_zones.items() %}
zone:
name: {{ key }}
zonefile: {{ key }}.forward
zone:
name: {{ value.ip_range | unbound_revdns }}
zonefile: {{ key }}.reverse
{% endfor %}