Created
June 19, 2015 09:01
-
-
Save peterkraume/abdab43b8269a46c3f49 to your computer and use it in GitHub Desktop.
List all domains with missing A records
This file contains 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
#!/bin/sh | |
# this script lists only those domain names with missing A records | |
domainnames="www.google.de | |
foobar.google.de | |
www.heise.de" | |
for domain in $domainnames | |
do | |
digresult=`dig +noall +answer $domain` | |
if [ -z "$digresult" ]; then | |
echo $domain | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment