Revision [332]
This is an old revision of ZoneStatus made by AvoYager on 2007-07-02 02:41:37.
#!/bin/bash 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 for zone in $zones do grep "\.${zone}\..*has address" $logfile |sort |uniq grep "\.${zone}\..*has address" $logfile |sed s/^.*address.// |sort |uniq done