blob: 93c2a14a312caf3d211b75c5683bbe6e23982e8c [file] [log] [blame]
Zack Williams13644cc2020-08-30 15:16:43 -07001{#
2SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
3SPDX-License-Identifier: Apache-2.0
4#}
5# nsd templates/nsd.conf.j2 - {{ ansible_managed }}
6
7server:
8 hide-version: yes
9
10## bind to a specific address/port
11 ip-address: {{ nsd_ip4 }}
12 ip4-only: yes
13 port: {{ nsd_port }}
14
15 server-count: 1
16 zonesdir: {{ nsd_zones_dir }}
17
18remote-control:
19 control-enable: yes
20
21# zonefiles to load
22{% for key, value in dns_zones.items() %}
23zone:
24 name: {{ key }}
25 zonefile: {{ key }}.forward
26
Zack Williamsda1625e2020-11-25 12:11:19 -070027# zone:
28# name: {{ value.ip_range | unbound_revdns }}
29# zonefile: {{ key }}.reverse
Zack Williams13644cc2020-08-30 15:16:43 -070030
31{% endfor %}