| |
| {# |
| Copyright 2017-present Open Networking Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| #} |
| |
| |
| # nsd.conf |
| # configured by Ansible! |
| |
| server: |
| hide-version: yes |
| ## bind to a specific address/port |
| ip-address: {{ nsd_ip }} |
| ## port number |
| port: {{ nsd_port|default(53) }} |
| server-count: 1 |
| ip4-only: yes |
| zonesdir: {{ nsd_zonesdir }} |
| |
| remote-control: |
| control-enable: no |
| |
| # zones to load |
| {% for zone in nsd_zones %} |
| zone: |
| name: {{ zone.name }} |
| zonefile: {{ zone.name }}.forward |
| |
| zone: |
| name: {{ (zone.ipv4_first_octets ~ ".0") | ipaddr('revdns') | regex_replace('^0\.','') }} |
| zonefile: {{ zone.name }}.reverse |
| |
| {% endfor %} |
| |