blob: b079d1359db0ec26fcc7fa7d0f60dee1d7a10d63 [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
Zack Williamsb7f2ab42021-03-15 22:26:41 -070021# forward zones
22{% for key, value in dns_forward_zones.items() %}
Zack Williams13644cc2020-08-30 15:16:43 -070023zone:
24 name: {{ key }}
25 zonefile: {{ key }}.forward
Zack Williamsb7f2ab42021-03-15 22:26:41 -070026{% endfor %}
Zack Williams13644cc2020-08-30 15:16:43 -070027
Zack Williamsb7f2ab42021-03-15 22:26:41 -070028# reverse zones
29{% for key, value in dns_reverse_zones.items() %}
30zone:
31 name: {{ key | unbound_revdns }}
32 zonefile: {{ key | ipaddr('network') }}.reverse
Zack Williams13644cc2020-08-30 15:16:43 -070033
34{% endfor %}