blob: 00662bc5007dbbcbb7f615e6db62e7e315782bec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
.. _resolver-override:
Overriding the System Resolver
------------------------------
Sometimes it can be useful to make all of Python use dnspython's resolver
rather than the default functionality in the ``socket`` module. Dnspython
can redefine the methods in the socket module to point at its own code, and
it can also restore them back to the regular Python defaults.
.. autofunction:: dns.resolver.override_system_resolver
.. autofunction:: dns.resolver.restore_system_resolver
|