summaryrefslogtreecommitdiff
path: root/2-sign-zone.sh
blob: 487d64e47ae84cc8392cf8f8711a2cc66b9cdbc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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