Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get the glue records for a domain
#!/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
You can’t perform that action at this time.