high volume/speed gethostbyaddr how?

Anthony Baxter anthony at interlink.com.au
Mon May 6 01:16:51 EDT 2002


>>> Dan Polak wrote
> Gethostbyaddr blocks by default, this means that there is an appreciable 
> delay before it returns.
> If you need to lookup a fair number of hostnames gethostbyaddr is much 
> too slow.
> Using select or the asyncore library might be the way to do it, but I 
> don't really understand how to make that work.
> What is a good way to retrieve the names for a 100 hosts within a few 
> seconds?

You could always use the DNS code from pydns.sf.net...

Anthony
-- 
Anthony Baxter     <anthony at interlink.com.au>   
It's never too late to have a happy childhood.






More information about the Python-list mailing list