#! /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:  inaddrcount/README inaddrcount/doinaddrcount
# Wrapped by geertj@belegen.ripe.net on Wed May  3 21:33:26 1995
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f inaddrcount/README -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"inaddrcount/README\"
else
echo shar: Extracting \"inaddrcount/README\" \(833 characters\)
sed "s/^X//" >inaddrcount/README <<'END_OF_inaddrcount/README'
X$Id$
X
XThis is in response to the request from the local-ir working group
Xto investigate the possibility if the hostcount tools can be used
Xto list problems in the in-addr domain.
X
XI stole a script used by hostcount, changed them a bit to check
X19[34].in-addr.arpa instead, and you're looking at the result.
X(please look in the datat directory for the actual result).
X
XI don't think that the current reporting is very usable because:
X- It is much too much data;
X- It is very hard to read;
X- Every temporary network problem shows up, making things _very_
X  noisy
X- Who is going to follow-up on thousands of DNS problems spread all
X  over Europe?
X
XFor this reason, I suggest to use the revcheck scripts, also found
Xon ftp.ripe.net:ripe/local-ir
X
XDuring ripe-21, I will hopefully learn if my conclusions are correct.
X
XEnjoy,
X
XGeert Jan
X
END_OF_inaddrcount/README
if test 833 -ne `wc -c <inaddrcount/README`; then
    echo shar: \"inaddrcount/README\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f inaddrcount/doinaddrcount -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"inaddrcount/doinaddrcount\"
else
echo shar: Extracting \"inaddrcount/doinaddrcount\" \(905 characters\)
sed "s/^X//" >inaddrcount/doinaddrcount <<'END_OF_inaddrcount/doinaddrcount'
X#! /bin/sh
X
X#OUTDIR=/ncc/hostcount
XOUTDIR=/home/geertj/inaddrcount
XDATADIR=$OUTDIR/data
XTEMP1=$OUTDIR/results/count1.$$
XTEMP=$OUTDIR/results/count.$$
XCOUNT=/tmp/count.$$
X
X# Below is for the total hostcount
X#DISTCOUNTRIES="at be ch cy cz de fi fr gr ie il it pt ru sk uk"
XCOUNTRIES0="193.in-addr.arpa 194.in-addr.arpa"
X
Xumask 113
X
Xif (test -s $TEMP) then
X	echo "Saving old $TEMP to $TEMP.old"
X	mv -f $TEMP $TEMP.old
Xfi
X
Xfor i in $COUNTRIES0
Xdo
X	(/usr/local/bin/host -lv -S -t any -s 10 -L 999 $i 2> $DATADIR/$i.error > $DATADIR/$i.output 
X	grep "Encountered" $DATADIR/$i.output > $TEMP1.$i
X	if (test -s $TEMP1.$i) then
X		cat $TEMP1.$i >> $TEMP
X	else
X		echo "Encountered 0 hosts in 0 domains within $i" >> $TEMP
X		echo "Encountered 0 duplicate hosts in 0 domains within $i" >> $TEMP
X	fi
X	rm -f $TEMP1.$i
X	nice gzip -f -S .gz -f $DATADIR/$i.output
X	nice gzip -f -S .gz -f $DATADIR/$i.error
X	) &
Xdone
Xwait
X
X
X
END_OF_inaddrcount/doinaddrcount
if test 905 -ne `wc -c <inaddrcount/doinaddrcount`; then
    echo shar: \"inaddrcount/doinaddrcount\" unpacked with wrong size!
fi
chmod +x inaddrcount/doinaddrcount
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0
