Skip to content

Instantly share code, notes, and snippets.

@MrXermon
Created March 11, 2019 07:15
Show Gist options
  • Save MrXermon/ff8b96ef3f5881ae0f7b7c4e397694cf to your computer and use it in GitHub Desktop.
Save MrXermon/ff8b96ef3f5881ae0f7b7c4e397694cf to your computer and use it in GitHub Desktop.
Output SOA records of multiple zones on multiple servers
zones=(level66.network jangilla.de)
servers=(ns26.ns26.de ns27.ns27.de ns28.ns28.de)
for i in "${zones[@]}"
do
echo "================" $i "================"
for j in "${servers[@]}"
do
dig $i SOA @$j +short
done
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment