Created
August 25, 2014 19:03
-
-
Save hackingbutlegal/92f268f114ecaec8a6c0 to your computer and use it in GitHub Desktop.
Iterate through IP's in a text file and output reverse DNS domain information.
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 ips.txt` ; do dig -x $i +short >> dns.txt ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for i in
cat ips.txt
; do echo -e "$i," >> dns.txt ; dig -x $i +short >> dns.txt ; doneHelps with data formatting for Excel analysis