Created
September 17, 2015 10:16
-
-
Save ykarikos/0d5cfa0d0ee467808810 to your computer and use it in GitHub Desktop.
Check that NS record match in all zone name servers
This file contains hidden or 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
MASTER=a.iana-servers.net.; DOMAIN=example.com.; dig +short -t NS $DOMAIN @$MASTER |sort >/tmp/$MASTER; for h in `cat /tmp/$MASTER`; do echo - Querying $h:; dig +short -t NS $DOMAIN @$h |sort |diff /tmp/$MASTER -; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment