[Python-Dev] DNS lookups with timeouts ?

M.-A. Lemburg mal@lemburg.com
Sun, 12 Nov 2000 13:58:44 +0100


Guido van Rossum wrote:
> 
> > I know of the Demo/dns/, but I'm unsure whether it can be
> > tweaked to allow timeouts.
> 
> Hm, typically the protocol used is UDP, and it's easy to set timeouts
> there: just use select on the socket.

Hmm, yes that would be a possibility. I'll see if I can come
up with some code which implements this.

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