Created
May 28, 2013 08:35
-
-
Save x-way/5661355 to your computer and use it in GitHub Desktop.
Get the glue records for a domain
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
#!/bin/bash | |
TGT=$1 | |
ROOT=${TGT##*.} | |
ROOT=${ROOT%.} | |
ROOT="${ROOT}." | |
RS=$(dig +short -t ns $ROOT|sed 1q) | |
dig +noall +additional +norec $TGT @$RS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment