add named.conf.options
[ansible.git] / roles / bind / templates / named.conf.options
diff --git a/roles/bind/templates/named.conf.options b/roles/bind/templates/named.conf.options
new file mode 100644 (file)
index 0000000..7ed35ed
--- /dev/null
@@ -0,0 +1,27 @@
+//========================================================================
+// If BIND logs error messages about the root key being expired,
+// you will need to update your keys.  See https://www.isc.org/bind-keys
+//========================================================================
+
+options {
+       directory "/var/cache/bind";
+       key-directory "/var/lib/bind/keys";
+
+       recursion no;
+       dnssec-enable yes;
+       sig-validity-interval 14;
+
+       auth-nxdomain no;    # conform to RFC1035
+       listen-on { {{ bind.listen }}; 127.0.0.1; };
+{% if bind.listen_v6 is defined %}
+       listen-on-v6 { {{ bind.listen_v6 }}; ::1; };
+{% endif %}
+
+       // hide BIND version
+       version "unknown";
+
+       // do rate-limiting
+       rate-limit {
+               responses-per-second 15;
+       };
+};