Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | #} |
| 17 | |
| 18 | |
Zack Williams | 99adf6b | 2016-03-14 17:01:08 -0700 | [diff] [blame] | 19 | # nsd.conf |
| 20 | # configured by Ansible! |
| 21 | |
| 22 | server: |
| 23 | hide-version: yes |
| 24 | ## bind to a specific address/port |
| 25 | ip-address: {{ nsd_ip }} |
| 26 | ## port number |
| 27 | port: {{ nsd_port|default(53) }} |
| 28 | server-count: 1 |
| 29 | ip4-only: yes |
| 30 | zonesdir: {{ nsd_zonesdir }} |
| 31 | |
| 32 | remote-control: |
Zack Williams | ba5549c | 2017-03-25 15:04:45 -0700 | [diff] [blame] | 33 | control-enable: no |
Zack Williams | 99adf6b | 2016-03-14 17:01:08 -0700 | [diff] [blame] | 34 | |
| 35 | # zones to load |
| 36 | {% for zone in nsd_zones %} |
| 37 | zone: |
| 38 | name: {{ zone.name }} |
| 39 | zonefile: {{ zone.name }}.forward |
| 40 | |
| 41 | zone: |
| 42 | name: {{ (zone.ipv4_first_octets ~ ".0") | ipaddr('revdns') | regex_replace('^0\.','') }} |
| 43 | zonefile: {{ zone.name }}.reverse |
| 44 | |
| 45 | {% endfor %} |
| 46 | |