From: James Britt Date: 2003-09-29T00:40:00+09:00 Subject: Re: TCPSocket.gethostbyname difficulties Yukihiro Matsumoto wrote: > This works for me: > > ruby -r socket -e 'p TCPSocket.gethostbyname("noblepack.com")' > ruby 1.8.0 (2003-09-27) [i686-linux] > ["noblepack.com", [], 2, "205.178.141.161"] > > Could you tell us more info? Out of curiosity, I just tried the above, on my Win2k laptop, running /\ndy's 1.8 build: C:\>ruby -v ruby 1.8.0 (2003-08-04) [i386-mswin32] C:\> ruby -r socket -e 'p TCPSocket.gethostbyname("noblepack.com")' -e:1:in `gethostbyname': host not found (SocketError) from -e:1 However, I can ping that location just fine. I then tried a different address: C:\> ruby -r socket -e 'p TCPSocket.gethostbyname("jamesbritt.com")' ["amsnac3.com", [], 2, "66.246.52.127"] James Britt