high volume/speed gethostbyaddr how?
Oleg Broytmann
phd at phd.pp.ru
Fri May 3 12:51:03 EDT 2002
On Fri, May 03, 2002 at 06:17:26PM +0200, 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?
GNU adns asynchronous DNS:
http://www.gnu.org/software/adns/adns.html
http://dustman.net/andy/python/adns-python
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list