# "No address associated with nodename"

**URL:** <https://www.ruby-forum.com/t/no-address-associated-with-nodename/116722>\
**Category:** Ruby\
**Created:** [October 9, 2007, 12:24am UTC](https://www.ruby-forum.com/t/no-address-associated-with-nodename/116722 "2007-10-09T00:24:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 9, 2007, 12:24am UTC](https://www.ruby-forum.com/t/no-address-associated-with-nodename/116722/1 "2007-10-09T00:24:34Z")

</div>

Once again my ignorance of all things networky bite me. Can anybody  
explain what this message might mean?

/usr/local/lib/ruby/1.8/net/ftp.rb:350:in `gethostbyname': getaddrinfo: No address associated with nodename (SocketError) from /usr/local/lib/ruby/1.8/net/ftp.rb:350:in`getaddress’  
from /usr/local/lib/ruby/1.8/net/ftp.rb:373:in `login’

---

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 9, 2007, 1:19am UTC](https://www.ruby-forum.com/t/no-address-associated-with-nodename/116722/2 "2007-10-09T01:19:02Z")

</div>

Tim H. wrote:

> Once again my ignorance of all things networky bite me. Can anybody  
> explain what this message might mean?
> 
> /usr/local/lib/ruby/1.8/net/ftp.rb:350:in `gethostbyname': getaddrinfo: No address associated with nodename (SocketError) from /usr/local/lib/ruby/1.8/net/ftp.rb:350:in `getaddress’  
> from /usr/local/lib/ruby/1.8/net/ftp.rb:373:in `login’

irb(main):004:0\> Socket.gethostbyname “[www.google.com](http://www.google.com)”  
=\> [“[www.l.google.com](http://www.l.google.com)”, [“[www.google.com](http://www.google.com)”], 2, “\330\357;g”,  
“\330\357;h”, “\330\357;c”, “\330\357;\223”]  
irb(main):005:0\> Socket.gethostbyname “[www.go42ogle.com](http://www.go42ogle.com)”  
SocketError: getaddrinfo: No address associated with nodename  
from (irb):5:in `gethostbyname’  
from (irb):5

Looks to me like you’re trying to connect to a hostname that doesn’t  
resolve to an actual IP address.

---

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 9, 2007, 1:22am UTC](https://www.ruby-forum.com/t/no-address-associated-with-nodename/116722/3 "2007-10-09T01:22:33Z")

</div>

On Oct 8, 2007, at 16:18 , Alex Y. wrote:

> Looks to me like you’re trying to connect to a hostname that  
> doesn’t resolve to an actual IP address.

Or that DNS was down/hiccuping at the time… happened to me a lot on  
my previous ISP. 😕

---

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 9, 2007, 1:28am UTC](https://www.ruby-forum.com/t/no-address-associated-with-nodename/116722/4 "2007-10-09T01:28:59Z")

</div>

Ryan D. wrote:

> 

Actually that sounds rather likely. Thanks for the tip!
