Skip to content

Instantly share code, notes, and snippets.

@hackingbutlegal
Created August 25, 2014 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackingbutlegal/92f268f114ecaec8a6c0 to your computer and use it in GitHub Desktop.
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.
for i in `cat ips.txt` ; do dig -x $i +short >> dns.txt ; done
@hackingbutlegal
Copy link
Author

for i in cat ips.txt ; do echo -e "$i," >> dns.txt ; dig -x $i +short >> dns.txt ; done

Helps with data formatting for Excel analysis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment