Created
          July 10, 2015 19:14 
        
      - 
      
- 
        Save trey/c41d92dbae0dfaf16af2 to your computer and use it in GitHub Desktop. 
    See if a domain is registered.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #! /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