Zack Williams | 13644cc | 2020-08-30 15:16:43 -0700 | [diff] [blame^] | 1 | {# |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | #} |
| 5 | # nsd templates/nsd.conf.j2 - {{ ansible_managed }} |
| 6 | |
| 7 | server: |
| 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 | |
| 18 | remote-control: |
| 19 | control-enable: yes |
| 20 | |
| 21 | # zonefiles to load |
| 22 | {% for key, value in dns_zones.items() %} |
| 23 | zone: |
| 24 | name: {{ key }} |
| 25 | zonefile: {{ key }}.forward |
| 26 | |
| 27 | zone: |
| 28 | name: {{ value.ip_range | unbound_revdns }} |
| 29 | zonefile: {{ key }}.reverse |
| 30 | |
| 31 | {% endfor %} |