Skip to content

Instantly share code, notes, and snippets.

@xandr0s
Created August 16, 2014 10:53
Show Gist options
  • Save xandr0s/0b77515ca8c509e99613 to your computer and use it in GitHub Desktop.
Save xandr0s/0b77515ca8c509e99613 to your computer and use it in GitHub Desktop.
Dig NS domains from input file
sh digIt.sh input.txt > result.txt
for i in `cat $1`;
do
for j in `dig $i ns +short`;
do
echo $i,$j
done
done
google.ru
github.com
example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment