high volume/speed gethostbyaddr how?
Dan Polak
systhree at nospam.mailandnews.com
Sat May 4 09:28:28 EDT 2002
In article <mailman.1020444726.27667.python-list at python.org>,
phd at phd.pp.ru says...
> 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.
>
Good solution too but I didn't want the extra library so I went with
threads. I didn't know about asynchronous DNS, interesting.
Thank you!
Dan
More information about the Python-list
mailing list