resolver-override.rst 486 B

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