"No address associated with nodename"

T

Tim Hunter

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'
 
A

Alex Young

Tim said:
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.
 
R

Ryan Davis

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. :/
 
T

Tim Hunter

Ryan said:
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top