From: Yukihiro Matsumoto Date: 2004-10-04T08:27:45+09:00 Subject: Re: Socket::gethostbyname() Hi, In message "Re: Socket::gethostbyname()" on Sun, 3 Oct 2004 15:04:56 +0900, CarlosRivera writes: | |I have done the following: | |irb(main):103:0> response = Socket::gethostbyname('www.ebay.com') |=> ["pages.ebay.com", [], 2, |"\020\002\000\000B\207\300X\000\000\000\000\000\000\000\000", |"\020\002\000\000B\207\320X\000\000\000\000\000\000\000\000", |"\020\002\000\000B\207\320e\000\000\000\000\000\000\000\000", |"\020\002\000\000B\207\300W\000\000\000\000\000\000\000\000"] |irb(main):104:0> | |What exactly are the 4 entries that are after the 2 in the array? From |looking at the man page for gethostbyname(), it should return something |resembling: How about using TCPSocket::gethostbyname instead? matz.