Skip to content

Instantly share code, notes, and snippets.

@miekg
Created February 6, 2013 09:21
Show Gist options
  • Save miekg/4721378 to your computer and use it in GitHub Desktop.
Save miekg/4721378 to your computer and use it in GitHub Desktop.
tld-dnssec-check
for tld in $(awk ' { print $1 }' root-zone | egrep '^[a-z0-9-]+\.$' | sort -u); do
echo -n $tld:
if dig +dnssec DNSKEY $tld | grep -q RRSIG; then
echo -n DNSSEC:
else
echo -n dnssec:
fi
echo $(dig +noall +answer ${tld}cc.jpmens.net txt | awk ' { print $5" "$6" "$7" "$8 } ')
done
@jpmens
Copy link

jpmens commented Feb 6, 2013

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment