# WhoIs lookup using Ruby

**URL:** <https://www.ruby-forum.com/t/whois-lookup-using-ruby/153857>\
**Category:** Ruby\
**Created:** [November 21, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/whois-lookup-using-ruby/153857 "2008-11-21T22:35:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pond](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7ab992/32.png) [@pond](https://www.ruby-forum.com/u/pond)\
**Post date:** [November 21, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/whois-lookup-using-ruby/153857/1 "2008-11-21T22:35:49Z")

</div>

Is there a Ruby class or an API I could use for conducting WhoIs lookups  
on domain names? I found whois-ruby, but it looks like it only does  
ipwhois lookups, which isn’t what I’m looking for.

Any ideas? I’ve been looking around for a while and haven’t had any  
luck…

---

<div class="post-metadata">

**Author:** ![pond](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7ab992/32.png) [@pond](https://www.ruby-forum.com/u/pond)\
**Post date:** [November 22, 2008, 12:06am UTC](https://www.ruby-forum.com/t/whois-lookup-using-ruby/153857/2 "2008-11-22T00:06:48Z")

</div>

Andrew H. wrote:

> Is there a Ruby class or an API I could use for conducting WhoIs lookups  
> on domain names? I found whois-ruby, but it looks like it only does  
> ipwhois lookups, which isn’t what I’m looking for.
> 
> Any ideas? I’ve been looking around for a while and haven’t had any  
> luck…

Nevermind - it looks like my best bet is going to be parsing the output  
of a command-line whois client.
