[issue22889] set a timeout for DNS lookups

R. David Murray report at bugs.python.org
Mon Nov 17 09:42:36 CET 2014


R. David Murray added the comment:

As far as I know, the libc dns timeout is controlled by /etc/resolv.conf (or whatever the Windows equivalent is), and libc doesn't provide any way for an application to override this.  There is no mention of timeout on the resolver(3) man page.   Do you know of a way?  (One that doesn't change global state.)  (In theory one could re-implement a DNS resolver client, but that is not something CPython is going to do :)

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22889>
_______________________________________


More information about the Python-bugs-list mailing list