blob: 4d5ead7936a1d3227f81b6223fdd4ca5d5aba741 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Zack Williams99adf6b2016-03-14 17:01:08 -070019# nsd.conf
20# configured by Ansible!
21
22server:
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
32remote-control:
Zack Williamsba5549c2017-03-25 15:04:45 -070033 control-enable: no
Zack Williams99adf6b2016-03-14 17:01:08 -070034
35# zones to load
36{% for zone in nsd_zones %}
37zone:
38 name: {{ zone.name }}
39 zonefile: {{ zone.name }}.forward
40
41zone:
42 name: {{ (zone.ipv4_first_octets ~ ".0") | ipaddr('revdns') | regex_replace('^0\.','') }}
43 zonefile: {{ zone.name }}.reverse
44
45{% endfor %}
46