Skip to content

Instantly share code, notes, and snippets.

@pad92
Created July 24, 2012 12:59
Show Gist options
  • Save pad92/3169806 to your computer and use it in GitHub Desktop.
Save pad92/3169806 to your computer and use it in GitHub Desktop.
DIG NS from /etc/bind/named.conf.local
#!/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