mlightner / universal_ruby_whois

A module that attempts to act as a universal WHOIS output interpreter allowing you to get information about most domain name extensions.
http://mattlightner.com/blog/a-universal-whois-client-for-ruby/
MIT License
42 stars 15 forks source link

problem of some domains #1

Open takahashim opened 15 years ago

takahashim commented 15 years ago

It's cool library! But I have a problem for some domains.

$ irb

irb(main):001:0> require 'rubygems'

=> true

irb(main):002:0> require 'universal_ruby_whois'

=> true

irb(main):003:0> d = Whois.find("google.co.jp")

=> #<Whois::Domain:0xb7993da4 @domain="google.co.jp", @server_tld_key="co.jp">

irb(main):004:0> d.registered?

=> true

irb(main):005:0> d.creation_date

=> nil

irb(main):006:0>

Correct value of creation_date is 2001/03/22.

I found same problems for *.ne.jp (ex. goo.ne.jp). What's wrong??

smith commented 15 years ago

For google.co.jp, it looks like the info given back from the whois.jprs.jp Whois server is crazy-looking and probably can's be parsed by the client. For example, the registered on shows up as:

[BEPO?G/7nF|]                    2001/03/22