ansible-role-bind/templates/dnssec.j2

11 lines
259 B
Text
Raw Normal View History

2017-10-08 12:55:01 +00:00
#!/bin/bash
# {{ ansible_managed }}
cd /etc/bind/keys
2018-10-07 10:57:36 +00:00
{% for zone in bind_dnssec %}
2018-09-07 18:43:08 +00:00
dnssec-signzone -3 $(head -n 1000 /dev/urandom | sha1sum | cut -b 1-16) -A -N INCREMENT -o {{ zone }} -t /etc/bind/zones/{{ zone }}/db
2017-10-08 12:55:01 +00:00
{% endfor %}
2017-10-14 22:52:30 +00:00
systemctl reload bind9