As far as I know, the library is working on IronRuby. I know there are some
companies using such environment.
It seems your IronRuby version doesn't define the EHOSTUNREACH error. Make
sure your IronRuby version is up to date and compatible with Ruby 1.8.7.
-- Simone
On Sun, May 13, 2012 at 3:22 AM, Bert Helsen <berthelse
...@gmail.com> wrote:
> Has anyone ever got whois working on ironruby
> i have the script whois1.rb:
> require 'rubygems'
> require 'whois'
> domain = "azerty.nl"
> c = Whois::Client.new
> r = c.query(domain)
> if (r.available?)
> puts
> puts (domain+" is AVAILABLE")
> puts
> else
> puts(domain+" is NOT available")
> end
> ==================================================
> but when i execute
> C:\Program Files (x86)\IronRuby 1.1\Lib\ruby\gems\1.9.1\gems
> \whois-2.5.1\lib>ir whois1.rb
> ===================================================
> ERROR:
> ./whois/server/adapters/base.rb:28:in `const_missing': uninitialized
> constant Er
> rno::EHOSTUNREACH (NameError)
> from ./whois/server/adapters/base.rb:28
> from ./whois/server/adapters/standard.rb:38
> from ./whois/server.rb:167:in `factory'
> from ./whois/server.rb:258:in `find_for_domain'
> from ./whois/server.rb:257:in `each'
> from ./whois/server.rb:257:in `find_for_domain'
> from ./whois/server.rb:217:in `guess'
> from ./whois/client.rb:88:in `query'
> from C:/Program Files (x86)/IronRuby 1.1/Lib/ruby/1.9.1/
> timeout.rb:48:in
> `timeout'
> from ./whois/client.rb:87:in `query'
> from whois1.rb:12
> Best regards
--
Simone Carletti
Application Developer
Site & Blog: http://www.simonecarletti.com
Email: wep...@weppos.net
LinkedIn: http://linkedin.com/in/weppos
Skype: weppos