[Python-Dev] DNS lookups with timeouts ?

Thomas Wouters thomas@xs4all.net
Sat, 11 Nov 2000 15:23:58 +0100

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:

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

(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. :)


>>> 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.
> -- 
> http://www.python.org/mailman/listinfo/python-list

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

Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!