From: Bert Hubert Date: Thu, 30 Dec 2010 14:47:58 +0000 (+0000) Subject: clone-zone got inception and expiration wrong, plus teach it to grab the correct key X-Git-Tag: auth-3.0~476 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93a6f1ee8ebe142120e1a5f621b65bf5f25f673e;p=pdns clone-zone got inception and expiration wrong, plus teach it to grab the correct key git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1771 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnssec-scripts/clone-zone b/pdns/dnssec-scripts/clone-zone index b27d2b161..fbc84d40d 100755 --- a/pdns/dnssec-scripts/clone-zone +++ b/pdns/dnssec-scripts/clone-zone @@ -1,11 +1,11 @@ #!/bin/bash TIMERANGE=$(drill -D @127.0.0.1 -p 5300 powerdnssec.org -t soa | grep RRSIG | head -1 | - awk '{printf "-i %s -e %s", $9, $10}') + awk '{printf "-e %s -i %s", $9, $10}') PLAINZONE=$1 ZSKID=$(drill -D @127.0.0.1 -p 5300 powerdnssec.org -t soa | grep RRSIG | cut -f2 -d{ | cut -f1 -d} | awk '{print $3}') -ZSKFNAME=$(echo /home/ahu/work/pdns/pdns/pdns/keys/$1/keys/*$ZSKID*zsk.active.private | sed s/.private//) +ZSKFNAME=$(echo /home/ahu/work/pdns/pdns/pdns/keys/$1/keys/000002*zsk.active.private | sed s/.private//) -ldns-signzone $2 $1 $TIMERANGE $ZSKFNAME +ldns-signzone $2 $3 $4 $1 $TIMERANGE $ZSKFNAME echo Zone signed with key id $ZSKID now in $1.signed \ No newline at end of file