From: Bill Kelly Date: 2009-05-14T21:48:16+09:00 Subject: Re: the question about getaddinfo From: "Qq Zz" > > the response is: address family for hostname not supported Hmm. I too get that error on Windows: ruby -v -rsocket -e "p Socket.getnameinfo(Socket.pack_sockaddr_in(0, '208.77.188.166'))" ruby 1.8.4 (2005-12-24) [i386-mswin32] -e:1:in `getnameinfo': getnameinfo: address family for hostname not supported. (SocketError) from -e:1 ruby19 -v -rsocket -e "p Socket.getnameinfo(Socket.pack_sockaddr_in(0, '208.77.188.166'))" ruby 1.9.1p129 (2009-05-12) [i386-mswin32_71] -e:1:in `getnameinfo': getnameinfo: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. (SocketError) from -e:1:in `
' However it works on Linux: ruby -v -rsocket -e "p Socket.getnameinfo(Socket.pack_sockaddr_in(0, '208.77.188.166'))" ruby 1.8.6 (2008-07-17 patchlevel 279) [x86_64-linux] ["www.example.com", "0"] Hmm... dunno... :( Regards, Bill