Subversion Repositories sysadmin_scripts

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
156 rodolico 1
Just some utilities to validate our DNS. With more than a few domains and 
2
clients adding and removing them on a random basis, it is easy to get
3
stale entries.
4
 
5
These scripts are designed to use a list of domains, or gather them
6
from a BIND installation, then call whois (nicely) to get the
7
information on each one.
8
 
9
whois output is saved in a cache directory so we don't beat the whois 
10
servers to death, and 15 seconds are paused between each call.
11
 
12
 
13
# To check for bad domains
14
./checkBind.pl | ./checkDomains.pl | grep BAD > baddomains
15
 
16
# To refresh the cache
17
rm -fR cache/*
18
./checkBind.pl | ./checkDomains.pl
19