74 |
rodolico |
1 |
#! /usr/bin/env bash
|
|
|
2 |
|
|
|
3 |
# simple script customized for our DNS server
|
|
|
4 |
# runs the necessary scripts to check for NS validity on our server
|
|
|
5 |
|
|
|
6 |
# first, refresh the whois records for all domains in the /etc/bind/SEC
|
|
|
7 |
# directory. Places by default into ./whois/ directory
|
|
|
8 |
ls /etc/bind/SEC/* | rev | cut -d'/' -f1 | rev | ./getWhoisRecord.pl
|
|
|
9 |
# now, get the NS records for whois dump in the ./whois/ directory
|
|
|
10 |
# create a tab delimited file for the output
|
|
|
11 |
./getWhoisNS.pl whois/* > getWhoisNS.csv
|
|
|
12 |
|
|
|
13 |
# finally, process the csv and see if there is anything there that we
|
|
|
14 |
# don't host
|
|
|
15 |
./weDontHost.pl ns.dailydata.net ns.dailydatainc.com < getWhoisNS.csv
|