Created
July 24, 2012 12:59
-
-
Save pad92/3169806 to your computer and use it in GitHub Desktop.
DIG NS from /etc/bind/named.conf.local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
for zone in $(cat /etc/bind/named.conf.local | grep -v ^/ | grep -v ^$| cut -d\" -f2 | sort |uniq ); do | |
echo "* dig NS $zone" | |
dig NS +short $zone | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment