Skip to content

Instantly share code, notes, and snippets.

@simbalinux
Created July 13, 2018 00:26
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 simbalinux/bf1375b264f4e29fe7abbb1156b92a09 to your computer and use it in GitHub Desktop.
Save simbalinux/bf1375b264f4e29fe7abbb1156b92a09 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
IFS=$'\n'
arr=($(dig @dns.server domain_to_search axfr))
unset IFS
for i in "${arr[@]:6:92}"
do
echo "$i" | awk '{print $5,$1}'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment