Bash: verify Bind Zonefiles
How to verify bind nameserver zones using a bash one-liner:
# cd path/to/bind9
# egrep "^zone.*" named.conf | cut -d '"' -f2 > domainlist
# for domain in `cat domainlist`
do
host -t ns $domain | ( grep 'ns01.example.com' > /dev/null && echo $domain )
done > domainlist.verified