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/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4