[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

resolv-replace problem

Matt Lawrence

1/22/2007 10:45:00 PM

3 Answers

Andre Nathan

1/22/2007 10:55:00 PM

0

On Tue, 2007-01-23 at 07:44 +0900, Matt Lawrence wrote:
> Any good alternatives for doing ip address to name lookups on thousands of
> systems?

You could have a look at Ruby/Cares[http://cares.ruby...]. It's a
wrapper for c-ares, a library that performs name-resolving
asynchronously.

Feedback welcome :)

Best regards,
Andre


Eric Hodel

1/22/2007 11:49:00 PM

0

On Jan 22, 2007, at 14:44, Matt Lawrence wrote:
> After running through aproximately 512 ip to name resolutions, the
> resolv-replace library seems to become very slow and starts
> blocking threads. Any ideas?
>
> Any good alternatives for doing ip address to name lookups on
> thousands of systems?

I've experienced this problem and assumed it was due to resolv-
replace waiting for the destination name servers to time out, but
didn't verify. Have you examined this possibility?

If you've got 1000 bogus host names, 100 threads and a 30 second
timeout per thread you'll still wait at least 5 minutes for all of
them to fail to resolve.

--
Eric Hodel - drbrain@segment7.net - http://blog.se...

I LIT YOUR GEM ON FIRE!


Matt Lawrence

1/22/2007 11:56:00 PM

0