Revision [354]
This is an old revision of ZoneStatus made by AvoYager on 2007-07-04 00:01:22.
#!/bin/sh
# checks to see if the SOA master serves the zone
for each in null indy geek fur oss
do echo "$each "
dig +nssearch ${each}. 2>/dev/null
echo
done #!/bin/bash
# list and test each individual host
zones="indy null oss geek fur parody"
logfile="/tmp/opennic_audit"
if [ -e $logfile ]
then rm $logfile
else touch $logfile
fi
for zone in $zones
do
for each in `dig axfr ${zone}. |grep IN |cut -f1 |sort |uniq`
do echo "$each `host -W1 -ta $each`" |tee -a $logfile
done
done
# summarize unique hsotnames and IPs
for zone in $zones
do
grep "\.${zone}\..*has address" $logfile |sort |uniq
grep "\.${zone}\..*has address" $logfile |sed s/^.*address.// |sort |uniq
done