"Craig Demyanovich" <demmer12 / mac.com> wrote in message > Hello, [snip] > Here's the code: > > require 'resolv' > > class ResolverTest > def run() > dns = Resolv::DNS.new > dns.getresources("www.apogent.com", > Resolv::DNS::Resource::IN::A).collect {|r| r.address} > puts("#{r}\n") > end > end > > resolver = ResolverTest.new() > resolver.run() > > Here's the error: > > C:/devtools/ruby/1.6.8/lib/ruby/1.6/resolv.rb:559:in `connect': The > requested address is not valid in its context. - "connect(2)" > (Errno::E10049) [snip] Apparently, there is a patch for "resolv.rb" on win32 which you may need to apply. I don't know if this has been recently discussed on ruby-talk but I found this old reference on ruby-dev which is a clue: ----------------------------------------------------- Subject: [ruby-dev:16289] win32/registry.rb and resolv.rb patch for win32 platform From: Tietew <tietew-ml-ruby-dev / tietew.net> Date: Fri, 8 Mar 2002 20:58:48 +0900) ----------------------------------------------------- Searching on ruby-talk for resolv.rb brings back quite a few threads, which you may have to trawl through. Of course, there are very knowledgeable Rubyzens here who might have a direct answer.