Skip to content

Instantly share code, notes, and snippets.

@peterkraume
Created June 19, 2015 09:01
Show Gist options
  • Save peterkraume/abdab43b8269a46c3f49 to your computer and use it in GitHub Desktop.
Save peterkraume/abdab43b8269a46c3f49 to your computer and use it in GitHub Desktop.
List all domains with missing A records
#!/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