Skip to content

Instantly share code, notes, and snippets.

@defunkt
Forked from jseifer/gist:217637
Created October 24, 2009 18:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save defunkt/217660 to your computer and use it in GitHub Desktop.
Save defunkt/217660 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Save in your .bash_profile then: isreg domain.com
function isreg {
dig soa $1 | grep -q ^$1 && echo "Yes" || echo "No"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment