Nathaniel Talbott
9/26/2003 2:46:00 PM
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
<:((><