diff options
Diffstat (limited to '2-sign-zone.sh')
| -rwxr-xr-x | 2-sign-zone.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2-sign-zone.sh b/2-sign-zone.sh new file mode 100755 index 0000000..487d64e --- /dev/null +++ b/2-sign-zone.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +cp root-zone.dns _tmp_root-zone.dns +for key in `ls K.*.key` +do + echo "\$INCLUDE $key" >> _tmp_root-zone.dns +done + +dnssec-signzone -A -3 $(head -c 1000 /dev/random | sha1sum | cut -b 1-16) -N INCREMENT -o . -t _tmp_root-zone.dns +rm _tmp_root-zone.dns +mv _tmp_root-zone.dns.signed root.signed.dns |
