ansible-role-bind/templates/dnssec.j2

11 lines
259 B
Text
Raw Normal View History

2017-10-08 14:55:01 +02:00
#!/bin/bash
# {{ ansible_managed }}
cd /etc/bind/keys
2018-10-07 12:57:36 +02:00
{% for zone in bind_dnssec %}
2018-09-07 20:43:08 +02: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 14:55:01 +02:00
{% endfor %}
2017-10-15 00:52:30 +02:00
systemctl reload bind9