Revision [359]
This is an old revision of ZoneStatus made by AvoYager on 2007-07-05 18:24:44.
#!/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 # NOTE this script must be run from your tier1 nameserver, or the equivalent, which provides xfer for all OpenNIC zones. 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 # this following 'dig' will be from localhost ... or as specified in /etc/resolv.conf ... 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