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