Skip to content

Instantly share code, notes, and snippets.

@jseifer
Created October 24, 2009 17:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save jseifer/217637 to your computer and use it in GitHub Desktop.
Save jseifer/217637 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
#
# Save in your path as "isreg" and chmod +x. Then: isreg domain.com
#
puts `whois #{ARGV[0]}` =~ /No match for \"#{ARGV[0]}\"/mi ? "No" : "Yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment