Skip to content

Instantly share code, notes, and snippets.

@rmoriz
Forked from defunkt/gist:217660
Created October 24, 2009 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmoriz/217706 to your computer and use it in GitHub Desktop.
Save rmoriz/217706 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 ^$1
}
# examples:
#
# $ isreg moriz.com
# moriz.com. 38400 IN SOA ns1. hostmaster.moriz.de. 2008082401 10800 3600 604800 38400
# $ isreg asdasdasdasdas.com
# $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment