Francis Turner <[EMAIL PROTECTED]> writes:

> Alternatively if gethostbyname gives long delays for no obvious reason
> how about using net::DNS::resolver instead? That one always seems fast
> to me assuming you send to a DNS that exists

I have not really tried it myself, but the "BUGS" section of Net::DNS

   Net::DNS is slow. Real slow.

DNS lookup in IO::Socket::INET always happen by calling the _get_addr
method internally.  It would be nice to have an IO::Socket::INET
subclass that overrides this method with an implementation based on
Net::DNS or something else that consider the timeout.  Just a little
project idea for somebody with too much time on their hands.


Reply via email to