Debian Codegraph @

sendreports

raw
1 #!/bin/sh
2 DATE=`date +%m/%y`
3 for file in *; do
4 hostmaster=`echo $file | sed 's/\./@/'`
5 echo Sending report to "$hostmaster"
6 (
7 cat <<EOF
8 The following is a report made by the 'dnswalk' program for the DNS
9 data under your control. You are getting this report because dnswalk
10 found potential errors in your DNS. Please refer to the following
11 explanations of the error messages and why they are important and make
12 the necessary corrections to your DNS.
13
14 If you would like a more extended discussion of common mistakes people
15 make in setting up and running a DNS server, see RFC 1912 at
16 ftp.internic.net:/rfc/rfc1912.txt
17
18 If you would like the source to the program which generates this
19 data, you can get it at http://www.cis.ohio-state.edu/~barr/dnswalk/
20
21 EOF
22 cat ../dnswalk.errors;\
23 echo "";\
24 cat $file;\
25 ) | /usr/ucb/Mail -s "DNS error report for $DATE" $hostmaster
26 # ) | cat >/tmp/reports/$file
27 sleep 1
28 done