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