Skip to content

Instantly share code, notes, and snippets.

@millipedia
Last active December 18, 2015 08:39
Show Gist options
  • Save millipedia/5755827 to your computer and use it in GitHub Desktop.
Save millipedia/5755827 to your computer and use it in GitHub Desktop.
Use dig to look up name servers being used by a list of domains.
cat domainlist.txt | xargs -izzz -n 1 sh -c "echo \"Domain: \" zzz; dig zzz ns +short; echo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment