From: Alan Johnson Date: 2008-11-20T20:04:46+09:00 Subject: Re: Question about host, gethostbyname and getaddress On Thu, Nov 20, 2008 at 1:12 AM, Vladimir Fekete wrote: > Hello Alan, > > I have to say you are not right. Ugh. I am very sorry. I've discovered why we are getting different results. I submitted a patch last night that changes the way gethostbyname/gethostbyaddr work. You see, right now they use a combination of several calls to functions in the underlying OS and combine the output of them into the results you see. I changed them to just faithfully call the underlying OS version of gethostbyname/gethostbyaddr. See http://redmine.ruby-lang.org/issues/show/743 if you care about more details. Somewhere along the way this patched version worked its way ahead of the stock version in my path. I name the executables differently to avoid this sort of confusion, but apparently I messed up somewhere. So, the bad news is once I fixed the error and tested with ruby 1.8, I'm getting similar results to you. The good news is that if that patch is accepted then this problem will go away in the future (not that that helps you any right now). Apologies for any frustrations I've caused you. -- Alan