query.rst 843 B

123456789101112131415161718192021222324252627282930313233
  1. .. module:: dns.query
  2. .. _query:
  3. DNS Query Support
  4. =================
  5. The ``dns.query`` module is for sending messages to DNS servers, and
  6. processing their responses. If you want "stub resolver" behavior, then
  7. you should use the higher level ``dns.resolver`` module; see :ref:`resolver`.
  8. For UDP and TCP, the module provides a single "do everything" query
  9. function, and also provides the send and receive halves of this function
  10. individually for situations where more sophisticated I/O handling is in
  11. being used by the application.
  12. UDP
  13. ---
  14. .. autofunction:: dns.query.udp
  15. .. autofunction:: dns.query.send_udp
  16. .. autofunction:: dns.query.receive_udp
  17. TCP
  18. ---
  19. .. autofunction:: dns.query.tcp
  20. .. autofunction:: dns.query.send_tcp
  21. .. autofunction:: dns.query.receive_tcp
  22. Zone Transfers
  23. --------------
  24. .. autofunction:: dns.query.xfr