From: Nathaniel Talbott Date: 2003-09-26T23:46:15+09:00 Subject: Re: TCPSocket.gethostbyname difficulties ts [mailto:decoux@moulon.inra.fr] wrote: > You are right, you can't use DNS. You can try > > svg% ruby -rsocket -e 'p > Socket::getnameinfo(["AF_INET",80,"noblepack.com"])' > ["205.178.141.161", "http"] > svg% Excellent! That's what I was looking for. Since I don't want to worry about the port at this point, I've just used 0: ntalbott@proxytest:~$ ruby -rsocket -e 'p Socket::getnameinfo(["AF_INET", 0, "www.noblepack.com"])' ["205.178.141.161", "0"] Works like a charm. Thanks Guy (and everyone else that contributed)! Nathaniel <:((><