Gisle Aas wrote:

> 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
> says:
> 
>    Net::DNS is slow. Real slow.
>

Slow is relative.

It doesn't wait 30 seconds for a DNS server to respond which seems to be 
what gethostbyname sometimes does...

at least for me I always get a nearly instantaneous response for a DNS 
lookup even when the response is negative.

 
> 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.

Hmmm... maybe we need one that sends the UDP message and waits .5s for a 
response ...

>  Just a little
> project idea for somebody with too much time on their hands.


I'm sure there are plenty of those around!

Francis

-- 
Francis Turner, CIO Juelich Enzyme Products Gmbh
http://www.juelich-enzyme.com/ +49-173-291-7278

In just two days, tomorrow will be yesterday.


Reply via email to