Skip to content

Instantly share code, notes, and snippets.

@jpignata
Forked from jseifer/gist:217637
Created October 24, 2009 23:36
Show Gist options
  • Save jpignata/217802 to your computer and use it in GitHub Desktop.
Save jpignata/217802 to your computer and use it in GitHub Desktop.
isreg() { test "`dig +short soa $1`" && echo "Yes" || echo "No"; }
# jp@populuxe:~$ isreg pivotallabs.com
# Yes
# jp@populuxe:~$ isreg everydayhealth.com
# Yes
# jp@populuxe:~$ isreg gov
# Yes
# jp@populuxe:~$ isreg mcfakester.fake
# No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment