[Python-Dev] DNS lookups with timeouts ?
M.-A. Lemburg
mal@lemburg.com
Sat, 11 Nov 2000 15:05:38 +0100
I am looking for a way to do DNS resolution with a timeout
on the lookup. The easy way to do these lookups using the
socket module often result in processes hanging for several
seconds (up to minutes on Windows), so I figured emulating the
standard DNS lookup (including the /etc/hosts and /etc/resolv.conf
files) would be a good idea.
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 ?
Thanks,
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/