#! /bin/bash
+basedir=$(cd `dirname $0`/..; pwd)
+cd $basedir
+
f=$1
-echo "Modify root zone and sign.sh"
-read c
-./sign.sh
+echo "Modify zones and sign.sh"
+getkey
+./bin/sign.sh
echo "Restart bind and NSD"
-read c
-./query.sh > $f
+getkey
+./bin/dnskey_query.sh > $f
egrep -e "(BIND|NSD|SIZE)" $f