blob: 29ba41a15bc06d8c8c227fba43b906475cd5632a [file] [log] [blame]
Zack Williams99adf6b2016-03-14 17:01:08 -07001# nsd.conf
2# configured by Ansible!
3
4server:
5 hide-version: yes
6## bind to a specific address/port
7 ip-address: {{ nsd_ip }}
8## port number
9 port: {{ nsd_port|default(53) }}
10 server-count: 1
11 ip4-only: yes
12 zonesdir: {{ nsd_zonesdir }}
13
14remote-control:
15 control-enable: yes
16
17# zones to load
18{% for zone in nsd_zones %}
19zone:
20 name: {{ zone.name }}
21 zonefile: {{ zone.name }}.forward
22
23zone:
24 name: {{ (zone.ipv4_first_octets ~ ".0") | ipaddr('revdns') | regex_replace('^0\.','') }}
25 zonefile: {{ zone.name }}.reverse
26
27{% endfor %}
28