blob: 8e6c185d51f7105a00dc2e4f19ee2a8c0e58559a [file] [log] [blame]
{#
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
# created by dns-nsd/templates/nsd.conf.j2
server:
hide-version: yes
## bind to a specific address/port
ip-address: {{ nsd_ip }}
## port number
port: {{ nsd_port }}
server-count: 1
ip4-only: yes
zonesdir: {{ nsd_zonesdir }}
remote-control:
control-enable: yes
# zonefiles to load
{% for zone in nsd_zones %}
zone:
name: {{ zone.name }}
zonefile: {{ zone.name }}.forward
zone:
name: {{ zone.cidr | unbound_revdns }}
zonefile: {{ zone.name }}.reverse
{% endfor %}