Created
March 11, 2019 07:15
-
-
Save netaviator/ff8b96ef3f5881ae0f7b7c4e397694cf to your computer and use it in GitHub Desktop.
Output SOA records of multiple zones on multiple servers
This file contains hidden or 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
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