[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

"No address associated with nodename"

Tim Hunter

10/8/2007 10:23:00 PM

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'

--
RMagick OS X Installer [http://rubyforge.org/project...]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?for...]
RMagick Installation FAQ [http://rmagick.rubyforge.org/instal...]

3 Answers

Alex Young

10/8/2007 11:18:00 PM

0

Tim Hunter 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"
=> ["www.l.google.com", ["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"
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.

--
Alex

Ryan Davis

10/8/2007 11:22:00 PM

0


On Oct 8, 2007, at 16:18 , Alex Young 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. :/



Tim Hunter

10/8/2007 11:28:00 PM

0

Ryan Davis wrote:
>
> On Oct 8, 2007, at 16:18 , Alex Young 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. :/
>
>
>

Actually that sounds rather likely. Thanks for the tip!

--
RMagick OS X Installer [http://rubyforge.org/project...]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?for...]
RMagick Installation FAQ [http://rmagick.rubyforge.org/instal...]