From 7da500d9cfdcd459efcfa8e6e9ffcfb51620b417 Mon Sep 17 00:00:00 2001 From: Matthieu Pignolet Date: Fri, 9 May 2025 20:43:56 +0400 Subject: first commit --- 2-sign-zone.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 2-sign-zone.sh (limited to '2-sign-zone.sh') 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 -- cgit v1.2.3