[Python-Dev] DNS lookups with timeouts ?

M.-A. Lemburg mal@lemburg.com
Sun, 12 Nov 2000 14:00:05 +0100


Thomas Wouters wrote:
> 
> On Sat, Nov 11, 2000 at 03:05:38PM +0100, M.-A. Lemburg wrote:
> 
> > I am looking for a way to do DNS resolution with a timeout on the lookup.
> > [..] I know of the Demo/dns/, but I'm unsure whether it can be tweaked to
> > allow timeouts.
> 
> > Are there any other such implementations out there ?
> 
> Anthony Baxter did a lot of work on Demo/dns. Unsure whether it does
> timeouts, but it does do async lookups ;) He posted this a couple of days
> ago, to the python list:

I did know of that lib -- but it seems a bit over the top for the
simple lookups I hav in mind.
 
> ---------------------------------------------------------------------------
> From: Anthony Baxter <anthony@interlink.com.au>
> To: support@internetdiscovery.com (Mike Clarkson)
> Cc: python-list@python.org
> Subject: Re: Async DNS?
> 
> The python DNS library I released a while ago (based on Guido's code)
> did this. I just had a poke around and realised that it's not visible
> anywhere on the net - I just dropped a copy into
> 
> http://www.zope.org/Members/anthony/software/dns.tar.gz
> (sorry DC guys for abusing the zope.org site - to make it fair, I'll
> whip up a DNS zope product at some point :)
> 
> I haven't looked at it in an age or two, but it used to work fine. :)
> 
> Anthony
> 
> >>> Mike Clarkson wrote
> > Does anyone have asynchronous DNS lookup for Python?
> >
> > Presumably it could be done in Python using sockets, but someone
> > must have done a C implementation.
> >
> > Many thanks in advance,
> >
> > Mike.

Thanks,
-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/