#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  revcheck/README revcheck/zc1 revcheck/zc2 revcheck/zc3
# Wrapped by geertj@belegen.ripe.net on Wed May  3 21:20:11 1995
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f revcheck/README -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"revcheck/README\"
else
echo shar: Extracting \"revcheck/README\" \(1370 characters\)
sed "s/^X//" >revcheck/README <<'END_OF_revcheck/README'
X$Id$
X
XThese are my revcheck scripts as I have been using them for a while.
XThey are not in 'distribution-format'; manual page and hmtl manual
Xare missing too (sorry), but I hope this is still useful to someone.
X
XThese scripts depend on 'host', written by Eric Wassenaar, as can be
Xfound on ftp.ripe.net:tools/dns/host.tar.Z
X
XHost -C complains about unreachable servers. This in itself is correct,
Xbut causes the error log to be very noisy because of temporary network
Xoutages which happen from day to day.
XFor this reason, I make a list of 'interesting zones' once a week, 
Xcheck them, and filter out the ones that pass the test.
XNext day, I only test the zones that failed the previous day.
XI do this for a week, after which I report the zones that failed 
Xall week - these are the interesting ones that need human intervention.
XAfter the weekly report, the thing starts over again: get a list of
Xinteresting zones, test, ...
X
X
XMy crontab looks like this:
X#
X# Once a week, gzip the old result and build a new domain test list
X0 8 * * 3 /home/geertj/proj/revcheck/zc3; /home/geertj/proj/revcheck/zc1
X#
X# Six days a week, run the test but discard diagnostics
X0 6 * * 0,1,2,4,5,6 /home/geertj/proj/revcheck/zc2 > /dev/null 2>&1
X#
X# Once a week, report what still fails
X# (See what happens on 8:00 above!)
X0 6 * * 3 /home/geertj/proj/revcheck/zc2 
X
XThat's all,
X
XGeert Jan
X
END_OF_revcheck/README
if test 1370 -ne `wc -c <revcheck/README`; then
    echo shar: \"revcheck/README\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f revcheck/zc1 -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"revcheck/zc1\"
else
echo shar: Extracting \"revcheck/zc1\" \(242 characters\)
sed "s/^X//" >revcheck/zc1 <<'END_OF_revcheck/zc1'
X#! /bin/sh
X
Xcd /home/geertj/proj/revcheck
X
Xrm -f zones.done zones.bad
X
Xfor z in zones/*; do
X	Z=`basename $z`
X	egrep '^[0-9].*[ 	]NS[ 	].*' $z | 
X	    sed 's/[ 	].*//g' | 
X	    while read y; do
X		echo $y.$Z
X	done
Xdone | 
X    uniq > zones.in
X
X
END_OF_revcheck/zc1
if test 242 -ne `wc -c <revcheck/zc1`; then
    echo shar: \"revcheck/zc1\" unpacked with wrong size!
fi
chmod +x revcheck/zc1
# end of overwriting check
fi
if test -f revcheck/zc2 -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"revcheck/zc2\"
else
echo shar: Extracting \"revcheck/zc2\" \(338 characters\)
sed "s/^X//" >revcheck/zc2 <<'END_OF_revcheck/zc2'
X#! /bin/sh
X
X
Xcd /home/geertj/proj/revcheck
XPATH=/usr/local/bin:$PATH;export PATH
X
XZC=/tmp/zc$$
X
Xrm -f $ZC
X
Xcat zones.in | while read z; do
X	if ( host -C $z > $ZC 2>&1 ) ; then
X		echo $z >> zones.ok
X	else
X		echo $z >> zones.bad
X		echo
X		echo
X		echo === $z
X		cat $ZC
X	fi
Xdone
X
Xmv zones.in zones.in.`itime`
Xmv zones.bad zones.in
X
Xrm -f $ZC
X
END_OF_revcheck/zc2
if test 338 -ne `wc -c <revcheck/zc2`; then
    echo shar: \"revcheck/zc2\" unpacked with wrong size!
fi
chmod +x revcheck/zc2
# end of overwriting check
fi
if test -f revcheck/zc3 -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"revcheck/zc3\"
else
echo shar: Extracting \"revcheck/zc3\" \(148 characters\)
sed "s/^X//" >revcheck/zc3 <<'END_OF_revcheck/zc3'
X#! /bin/sh
X
Xcd /home/geertj/proj/revcheck
XPATH=/usr/local/bin:$PATH;export PATH
X
XD=`date +%y%m%d`
X
Xmkdir $D
Xmv zones.in* zones.ok $D
Xgzip -9 $D/*
X
X
END_OF_revcheck/zc3
if test 148 -ne `wc -c <revcheck/zc3`; then
    echo shar: \"revcheck/zc3\" unpacked with wrong size!
fi
chmod +x revcheck/zc3
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0
