Sysadmin > SerVices > BinD9 > DNSControlScript

Usefull script to check your domain

#!/bin/sh
#cat  /var/log/named/queries.* | grep query | grep -v bfinv |  grep "\(.biz \|.ru \|.info \)" | grep -v \.de\ | grep -v foo.com | grep -v " www." | grep "[[:alpha:]]\{24,\}"  | awk '{print $6 "#" $8}' | awk -F# '{print $1}' | sort -n | uniq -c | sort -n

dig vzd.foo.com. NS | grep "IN.*NS" | awk '{print $5}' | xargs -n1 -I% dnstracer -4 -t 1 -o -q soa -c -s % vzd.foo.com. | grep "\(serial\|*\ \*\)"
echo
dig zo.vzd.foo.com. NS | grep "IN.*NS" | awk '{print $5}' | xargs -n1 -I% dnstracer -4 -t 1 -o -q soa -c -s % zo.vzd.foo.com. | grep "\(serial\|*\ \*\)"
echo
dig zi.vzd.foo.com. NS | grep "IN.*NS" | awk '{print $5}' | xargs -n1 -I% dnstracer -4 -t 1 -o -q soa -c -s % zi.vzd.foo.com. | grep "\(serial\|*\ \*\)"
echo
dig ba2.vzd.foo.com. NS | grep "IN.*NS" | awk '{print $5}' | xargs -n1 -I% dnstracer -4 -t 1 -o -q soa -c -s % ba2.vzd.foo.com. | grep "\(serial\|*\ \*\)"
echo
dig bz.vzd.foo.com. NS | grep "IN.*NS" | awk '{print $5}' | xargs -n1 -I% dnstracer -4 -t 1 -o -q soa -c -s % bz.vzd.foo.com. | grep "\(serial\|*\ \*\)"
echo
dig bw.vzd.foo.com. NS | grep "IN.*NS" | awk '{print $5}' | xargs -n1 -I% dnstracer -4 -t 1 -o -q soa -c -s % bw.vzd.foo.com. | grep "\(serial\|*\ \*\)"
echo
dig _msdcs.vzd.foo.com. NS | grep "IN.*NS" | awk '{print $5}' | xargs -n1 -I% dnstracer -4 -t 1 -o -q soa -c -s % _msdcs.vzd.foo.com. | grep "\(serial\|*\ \*\)"