blob: 93c2a14a312caf3d211b75c5683bbe6e23982e8c [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 %}