Forum: Ruby Lots of getaddrinfo: Temporary failure in name resolution in

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E813e0a366e5d5ddc302fa57a0fc2fab?d=identicon&s=25 Curtis Spencer (Guest)
on 2006-06-09 23:29
(Received via mailing list)
Hi,

 I am working on a crawler, and I am encountering a large number of
 getaddrinfo: Temporary failure in name resolution exceptions when I am
 using open-uri.  I am using a hybrid approach with a lot of forks and
 lot of ruby threads running inside each process.  Each of these is
 making a open-uri calls.  Is there something I should be doing to
 ensure the proper DNS resolution is occuring.  When I dig the sites
 manually, all of them return a proper DNS entry.

 Secondly, I have tried the ruby resolver, and that gave poor resolution
 as well.  I have tried this on both my linux machine and OS X, both
 running ruby 1.8.4.

 Any ideas?
This topic is locked and can not be replied to.