# Lots of getaddrinfo: Temporary failure in name resolution in

**URL:** <https://www.ruby-forum.com/t/lots-of-getaddrinfo-temporary-failure-in-name-resolution-in/62968>\
**Category:** Ruby\
**Created:** [June 9, 2006, 11:29pm UTC](https://www.ruby-forum.com/t/lots-of-getaddrinfo-temporary-failure-in-name-resolution-in/62968 "2006-06-09T23:29:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Curtis\_Spencer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e495f1/32.png) [@Curtis\_Spencer](https://www.ruby-forum.com/u/Curtis_Spencer)\
**Post date:** [June 9, 2006, 11:29pm UTC](https://www.ruby-forum.com/t/lots-of-getaddrinfo-temporary-failure-in-name-resolution-in/62968/1 "2006-06-09T23:29:29Z")

</div>

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?
