Nathaniel Talbott
9/26/2003 1:49:00 PM
ts [mailto:decoux@moulon.inra.fr] wrote:
> N> I'm trying to use TCPSocket.gethostbyname to verify that a given
> N> domain actually exists in DNS.
>
> you can't, just try
>
> moulon% host xxxxyyyyttttuuu.com
> xxxxyyyyttttuuu.com has address 64.94.110.11
> moulon%
>
> moulon% host aaazertyuiop.com
> aaazertyuiop.com has address 64.94.110.11
> moulon%
Right, this is due to Verisign's irritating site-finder thingy, but I can
filter those results out if I want to. What about the following, though:
ntalbott@proxytest:~$ host cancer.org
cancer.org has address 209.135.47.118
cancer.org has address 0.0.0.0
ntalbott@proxytest:~$ ruby -rsocket -e 'p
TCPSocket::gethostbyname("cancer.org")'
-e:1:in `gethostbyname': host not found (SocketError)
from -e:1
Can I make that work?
Nathaniel
<:((><