Skip to content

Instantly share code, notes, and snippets.

Created February 20, 2020 19:18
What would you like to do?
Convert list of domains to IPs using dig
# call with <domain> <list of subdomains.txt>
ulimit -n 800000
while read -r domain; do dig +short $domain | grep -v '[[:alpha:]]' | sort -u >> $1-ipf.txt; done < $2
cat $1-ipf.txt | anew $1-ipz.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment