Zack Williams | 99adf6b | 2016-03-14 17:01:08 -0700 | [diff] [blame] | 1 | # nsd.conf |
| 2 | # configured by Ansible! |
| 3 | |
| 4 | server: |
| 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 | |
| 14 | remote-control: |
| 15 | control-enable: yes |
| 16 | |
| 17 | # zones to load |
| 18 | {% for zone in nsd_zones %} |
| 19 | zone: |
| 20 | name: {{ zone.name }} |
| 21 | zonefile: {{ zone.name }}.forward |
| 22 | |
| 23 | zone: |
| 24 | name: {{ (zone.ipv4_first_octets ~ ".0") | ipaddr('revdns') | regex_replace('^0\.','') }} |
| 25 | zonefile: {{ zone.name }}.reverse |
| 26 | |
| 27 | {% endfor %} |
| 28 | |