Revision [400]

This is an old revision of ZoneStatus made by AvoYager on 2007-07-09 10:20:57.

 



What's new
files/zone_hosts.diff is not readable.

The Details

Sun Jul 31 11:49:01 UTC 2011

. listed nameservers:
---------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011073103 Master: ns0.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011073103 Master: ns0.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011073103 Master: ns0.opennic.glue.
ns8.opennic.glue 178.63.116.152 SOA: 2011073103 Master: ns0.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 2011073103 Master: ns0.opennic.glue.

bbs listed nameservers:
-----------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011072700 Master: ns6.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve bbs
ns5.opennic.glue 128.177.28.254 SOA: 2011072700 Master: ns6.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011072700 Master: ns6.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns21.opennic.glue 202.83.95.229 SOA: 2011072700 Master: ns6.opennic.glue.

bzh listed nameservers:
-----------------------
ns2.opennic.glue 216.87.84.214 SOA: 1298660529 Master: ns3.opennic.glue.
ns3.opennic.glue 87.98.187.164 SOA: 1298660529 Master: ns3.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 1298660529 Master: ns3.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 1298660529 Master: ns3.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns21.opennic.glue 202.83.95.229 SOA: 1298660529 Master: ns3.opennic.glue.

dyn listed nameservers:
-----------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011060100 Master: ns6.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve dyn
ns4.opennic.glue 84.200.228.200 SOA: 2011060100 Master: ns6.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011060100 Master: ns6.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011060100 Master: ns6.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns21.opennic.glue 202.83.95.229 SOA: 2011060100 Master: ns6.opennic.glue.

free listed nameservers:
------------------------
ns2.opennic.glue 216.87.84.214 SOA: 1312112342 Master: ns21.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve free
ns4.opennic.glue 84.200.228.200 SOA: 1312112342 Master: ns21.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 1312112342 Master: ns21.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 1312112342 Master: ns21.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.opennic.glue 178.63.116.152 SOA: 1312112342 Master: ns21.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 1312112342 Master: ns21.opennic.glue.

fur listed nameservers:
-----------------------
ns1.ns.ph2.eu 84.200.228.200 SOA: 178162 Master: ns1.ns.ph2network.org.
ns1.ns.ph2network.org 84.200.228.200 SOA: 178162 Master: ns1.ns.ph2network.org.
ns2.opennic.glue 216.87.84.214 SOA: 178162 Master: ns1.ns.ph2network.org.
ns3.opennic.glue 87.98.187.164 does not serve fur
ns4.opennic.glue 84.200.228.200 SOA: 178162 Master: ns1.ns.ph2network.org.
ns6.ns.ph2network.org 178.63.26.173 SOA: 178162 Master: ns1.ns.ph2network.org.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.ns.ph2network.org 188.40.132.212 SOA: 178162 Master: ns1.ns.ph2network.org.
ns21.opennic.glue 202.83.95.229 SOA: 178162 Master: ns1.ns.ph2network.org.

geek listed nameservers:
------------------------
ns2.opennic.glue 216.87.84.214 SOA: 1312112341 Master: ns21.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve geek
ns4.opennic.glue 84.200.228.200 SOA: 1312112341 Master: ns21.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 1312112341 Master: ns21.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 1312112341 Master: ns21.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.opennic.glue 178.63.116.152 SOA: 1312112341 Master: ns21.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 1312112341 Master: ns21.opennic.glue.

gopher listed nameservers:
--------------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011072916 Master: ns7.opennic.glue.
ns4.opennic.glue 84.200.228.200 SOA: 2011072916 Master: ns7.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011072916 Master: ns7.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011072916 Master: ns7.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns21.opennic.glue 202.83.95.229 SOA: 2011072916 Master: ns7.opennic.glue.

indy listed nameservers:
------------------------
ns2.opennic.glue 216.87.84.214 SOA: 1312112343 Master: ns21.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve indy
ns4.opennic.glue 84.200.228.200 SOA: 1312112343 Master: ns21.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 1312112343 Master: ns21.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 1312112343 Master: ns21.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.opennic.glue 178.63.116.152 SOA: 1312112343 Master: ns21.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 1312112343 Master: ns21.opennic.glue.

ing listed nameservers:
-----------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011070600 Master: ns5.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011072400 Master: ns5.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011070600 Master: ns5.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns21.opennic.glue 202.83.95.229 SOA: 2011070600 Master: ns5.opennic.glue.

micro listed nameservers:
-------------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011062101 Master: ns5.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011062101 Master: ns5.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011062101 Master: ns5.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns21.opennic.glue 202.83.95.229 SOA: 2011062101 Master: ns5.opennic.glue.

null listed nameservers:
------------------------
ns2.opennic.glue 216.87.84.214 SOA: 1312112343 Master: ns21.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve null
ns4.opennic.glue 84.200.228.200 SOA: 1312112343 Master: ns21.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 1312112343 Master: ns21.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 1312112343 Master: ns21.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.opennic.glue 178.63.116.152 SOA: 1312112343 Master: ns21.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 1312112343 Master: ns21.opennic.glue.

opennic.glue listed nameservers:
--------------------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011060300 Master: ns0.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve opennic.glue
ns4.opennic.glue 84.200.228.200 SOA: 2011060300 Master: ns0.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011060300 Master: ns0.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011060300 Master: ns0.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.opennic.glue 178.63.116.152 SOA: 2011060300 Master: ns0.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 2011060300 Master: ns0.opennic.glue.

oss listed nameservers:
-----------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011072920 Master: ns2.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve oss
ns4.opennic.glue 84.200.228.200 SOA: 2011072920 Master: ns2.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011072920 Master: ns2.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011072920 Master: ns2.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.opennic.glue 178.63.116.152 SOA: 2011072920 Master: ns2.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 2011072920 Master: ns2.opennic.glue.

parody listed nameservers:
--------------------------
ns2.opennic.glue 216.87.84.214 SOA: 2011072903 Master: ns2.opennic.glue.
ns3.opennic.glue 87.98.187.164 does not serve parody
ns4.opennic.glue 84.200.228.200 SOA: 2011072903 Master: ns2.opennic.glue.
ns5.opennic.glue 128.177.28.254 SOA: 2011072903 Master: ns2.opennic.glue.
ns6.opennic.glue 207.192.71.13 SOA: 2011072903 Master: ns2.opennic.glue.
ns7.opennic.glue 66.244.95.11 does not respond
ns8.opennic.glue 178.63.116.152 SOA: 2011072903 Master: ns2.opennic.glue.
ns21.opennic.glue 202.83.95.229 SOA: 2011072903 Master: ns2.opennic.glue.


The Script

#!/bin/sh
# file: zone_hosts.sh
# avo 30 Sep 2007
# Changes:
# 2010/04/01: Added new function to output each zone to its own .soa
# file (BAK)


#zones=". opennic.glue free geek oss parody"
zones=`dig +norecurse +short tlds.opennic.glue txt @58.6.115.45 |sed s/\"//g`
#zones=${all_zones//fur/}

outfile="zone_hosts"
test -e ${outfile}.log && mv -f ${outfile}.log ${outfile}.last

# Process all zones and output in one long list
process () {
date
for each in $zones
do os=`echo "$each listed nameservers:"`
echo -e "\n$os"
echo $os |tr [:print:] -
# for nshost in `dig @master.opennic.glue +short ns ${each}`
for nshost in `dig +short ns ${each}`
do
printf "%20s" ${nshost}
if host -W 1 ${nshost} > /dev/null; then \
printf "%18s" `dig +tries=2 +time=1 +short a ${nshost} |head -1`
if host -r -W 1 ${nshost} ${nshost} >/dev/null
then \
if dig +norecurse +tries=1 +time=1 +short soa ${each} @${nshost} |grep -q '.'
then \
dig +norecurse +tries=1 +time=1 +short soa ${each} @${nshost} \
| awk '{printf " SOA: %10s Master: %s",$3,$1}'
else echo -n " does not serve $each"
fi
else echo -n " does not respond"
fi
else echo -n " has no IP"
fi
echo ""
done
done
}

# Process each zone in turn
# Input: $1 - zone
process2 () {
date
os=`echo "$1 listed nameservers:"`
echo -e "\n$os"
echo $os |tr [:print:] -
for nshost in `dig +short ns ${zone}`
do
printf "%20s" ${nshost}
if host -W 1 ${nshost} > /dev/null; then \
printf "%18s" `dig +tries=2 +time=1 +short a ${nshost} |head -1`
if host -r -W 1 ${nshost} ${nshost} >/dev/null
then \
if dig +norecurse +tries=1 +time=1 +short soa ${1} @${nshost} |grep -q '.'
then \
dig +norecurse +tries=1 +time=1 +short soa ${1} @${nshost} \
| awk '{printf " SOA: %10s Master: %s",$3,$1}'
else echo -n " does not serve $1"
fi
else echo -n " does not respond"
fi
else echo -n " has no IP"
fi
echo ""
done
}


process |tee ${outfile}.log
for i in $zones; do
process2 "$i" | tee ${i}.soa
done
echo
test -e ${outfile}.base && diff ${outfile}.base ${outfile}.log |tee ${outfile}.diff

exit 0
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki