copy:
dest: /var/lib/bind/Makefile
src: files/Makefile
+- name: install bind config
+ template:
+ dest: /etc/bind/named.conf.options
+ src: templates/named.conf.options
+ notify: bind9
# dyn-nsupdate
- name: install dyn-nsupdate build-deps
apt: name=libboost-regex-dev,libboost-program-options-dev,cmake state=latest
--- /dev/null
+//========================================================================
+// 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;
+ };
+};