Skip to content

Instantly share code, notes, and snippets.

@yashh
Forked from jseifer/gist:217637
Created October 27, 2009 06:06
Show Gist options
  • Save yashh/219354 to your computer and use it in GitHub Desktop.
Save yashh/219354 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