Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#! /usr/bin/env bash
# simple script customized for our DNS server
# runs the necessary scripts to check for NS validity on our server
# first, refresh the whois records for all domains in the /etc/bind/SEC
# directory. Places by default into ./whois/ directory
ls /etc/bind/SEC/* | rev | cut -d'/' -f1 | rev | ./getWhoisRecord.pl
# now, get the NS records for whois dump in the ./whois/ directory
# create a tab delimited file for the output
./getWhoisNS.pl whois/* > getWhoisNS.csv
# finally, process the csv and see if there is anything there that we
# don't host
./weDontHost.pl ns.dailydata.net ns.dailydatainc.com < getWhoisNS.csv