Skip to content

Instantly share code, notes, and snippets.

@ykarikos
Created September 17, 2015 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykarikos/0d5cfa0d0ee467808810 to your computer and use it in GitHub Desktop.
Save ykarikos/0d5cfa0d0ee467808810 to your computer and use it in GitHub Desktop.
Check that NS record match in all zone name servers
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