aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dns/templates
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-03 00:16:33 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:07 +0800
commit82d28ab9e535931f05e5eb11b8d6e14c02a530b7 (patch)
treea3345b31952e0ab23d6e5c7e436ce10b19cc462d /roles/dns/templates
parent83bb3cb9e08fb09ef2b101302b9803d8e5e708cb (diff)
downloadansible-dfly-vps-82d28ab9e535931f05e5eb11b8d6e14c02a530b7.tar.bz2
dns/nsd: clean config file a bit, increase verbosity to 1
Diffstat (limited to 'roles/dns/templates')
-rw-r--r--roles/dns/templates/nsd.conf.j215
1 files changed, 4 insertions, 11 deletions
diff --git a/roles/dns/templates/nsd.conf.j2 b/roles/dns/templates/nsd.conf.j2
index 8ace470..87ac3fe 100644
--- a/roles/dns/templates/nsd.conf.j2
+++ b/roles/dns/templates/nsd.conf.j2
@@ -54,27 +54,20 @@ server:
#database: "/var/db/nsd/nsd.db"
database: ""
- # The directory for "zonefile" files. The daemon chdirs here.
- #zonesdir: "/usr/local/etc/nsd"
-
- # The list of dynamically added zones.
- #zonelistfile: "/var/db/nsd/zone.list"
-
# Don't answer VERSION.BIND and VERSION.SERVER CHAOS class queries
hide-version: yes
# Identify the server (CH TXT ID.SERVER entry)
identity: ""
- # Statistics are produced every number of seconds. Prints to log.
- # Default is 0, meaning no statistics are produced.
+ # Statistics are produced every number of seconds.
# NOTE: requires BIND 8 statistics, which is disabled in the package
#statistics: 7200
# Verbosity level (0, 1, 2).
# Level 0 will print warnings and errors, and other events that are
# important to keep NSD running.
- verbosity: 0
+ verbosity: 1
# Log messages to file. Default to stderr and syslog (with
# facility LOG_DAEMON). stderr disappears when daemon goes to bg.
@@ -125,9 +118,9 @@ pattern:
# Fixed zone entries. Here you can config zones that cannot be deleted.
# Zones that are dynamically added and deleted are put in the zonelist file.
#
-{% for domain in domains %}
+{% for zf in zonefiles %}
zone:
- name: "{{ domain.name }}"
+ name: "{{ zf | basename | regex_replace('\.zone\.j2', '') }}"
include-pattern: "stealth_zones"
{% endfor %}