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