Fix typo in ifconfig script and add dnssec clean script

This commit is contained in:
Michael Sawyer 2000-05-17 23:15:32 +00:00
parent 81ab85fd39
commit 78ad076390
5 changed files with 12 additions and 17 deletions

View file

@ -0,0 +1,6 @@
#!/bin/sh
rm -f */K* */*.keyset */*.signedkey */*.signed */trusted.conf
rm -f ns1/root.db ns2/example.db ns3/secure.example.db
rm -f ns3/unsecure.example.db ns3/bogus.example.db
rm -f dig.out.*

View file

@ -10,17 +10,14 @@ keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
cp ../ns2/example.keyset .
echo $KEYSIGNER example.keyset $keyname
$KEYSIGNER example.keyset $keyname
cat example.signedkey >> ../ns2/example.db.signed
echo $KEYSETTOOL $keyname
$KEYSETTOOL $keyname
$KEYSETTOOL -t 3600 $keyname
cat $infile $keyname.key > $zonefile
echo $SIGNER -o $zone $zonefile
$SIGNER -o $zone $zonefile
# Configure the resolving server with a trusted key.

View file

@ -13,7 +13,6 @@ keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
cp ../ns3/secure.example.keyset .
echo $KEYSIGNER secure.example.keyset $keyname
$KEYSIGNER secure.example.keyset $keyname
# This will leave two copies of the child's zone key in the signed db file;
@ -22,19 +21,16 @@ cat secure.example.signedkey >>../ns3/secure.example.db.signed
cp ../ns3/bogus.example.keyset .
echo $KEYSIGNER bogus.example.keyset $keyname
$KEYSIGNER bogus.example.keyset $keyname
# This will leave two copies of the child's zone key in the signed db file;
# that shouldn't cause any problems.
cat bogus.example.signedkey >>../ns3/bogus.example.db.signed
echo $KEYSETTOOL $keyname
$KEYSETTOOL $keyname
$KEYSETTOOL -t 3600 $keyname
cat $infile $keyname.key >$zonefile
echo $SIGNER -o $zone $zonefile
$SIGNER -o $zone $zonefile

View file

@ -6,12 +6,10 @@ zonefile=secure.example.db
keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
echo $KEYSETTOOL $keyname.key
$KEYSETTOOL $keyname.key
$KEYSETTOOL -t 3600 $keyname.key
cat $infile $keyname.key >$zonefile
echo $SIGNER -o $zone $zonefile
$SIGNER -o $zone $zonefile
zone=bogus.example.
@ -20,10 +18,8 @@ zonefile=bogus.example.db
keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
echo $KEYSETTOOL $keyname.key
$KEYSETTOOL $keyname.key
$KEYSETTOOL -t 3600 $keyname.key
cat $infile $keyname.key >$zonefile
echo $SIGNER -o $zone $zonefile
$SIGNER -o $zone $zonefile

View file

@ -23,10 +23,10 @@ do
ifconfig lo0:$ns 10.53.0.$ns up
;;
lo)
ifconfig lo:$ns 10.50.0.$ns up
ifconfig lo:$ns 10.53.0.$ns up
;;
alias)
ifconfig lo0 10.50.0.$ns alias
ifconfig lo0 10.53.0.$ns alias
;;
*)
echo "Don't know how to set up interface. Giving up."