title: Using ruby whois
body: <p>I need to retrieve whois informations for a given site. because the whois content varies with each whois server, i need to parse the whois content what i'm getting.  </p>
  
  <p>I'm using php to show the content from db and initially tried in php to parse it. now i came to know there is ruby whois package which parses whois content.<br>
  so the idea is running ruby program in the background to put whois content in db then show using php if requests made.</p>
  
  <p>I've installed ruby 1.8.7 and whois and tried examples given in <a href="http://www.ruby-whois.org/manual/usage/" rel="nofollow">ruby document</a>. But its giving   </p>
  
  <pre><code>/opt/lampp/htdocs/labs/ruby/ruby-whois.rb:1: uninitialized constant Whois (NameError)  
  </code></pre>
  
  <p>is rubywhois different from ruby? can anyone help me in this regard.</p>