# Socket.getaddrinfo and IPSocket.getaddress super slow?

**URL:** <https://www.ruby-forum.com/t/socket-getaddrinfo-and-ipsocket-getaddress-super-slow/148459>\
**Category:** Ruby\
**Created:** [September 13, 2008, 1:25am UTC](https://www.ruby-forum.com/t/socket-getaddrinfo-and-ipsocket-getaddress-super-slow/148459 "2008-09-13T01:25:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glen\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/34f0e0/32.png) [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Post date:** [September 13, 2008, 1:25am UTC](https://www.ruby-forum.com/t/socket-getaddrinfo-and-ipsocket-getaddress-super-slow/148459/1 "2008-09-13T01:25:29Z")

</div>

Anyone know why Socket.getaddrinfo and IPSocket.getaddress take up to 3  
seconds to return when the host doesn’t have a record in DNS? Do they  
even  
use DNS?

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)
