summaryrefslogtreecommitdiff
path: root/doc/query.rst
blob: 0fe3ccb6d29a353a55b005fc35a96d71dbf9489a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.. module:: dns.query
.. _query:

DNS Query Support
=================

The ``dns.query`` module is for sending messages to DNS servers, and
processing their responses.  If you want "stub resolver" behavior, then
you should use the higher level ``dns.resolver`` module; see :ref:`resolver`.

For UDP and TCP, the module provides a single "do everything" query
function, and also provides the send and receive halves of this function
individually for situations where more sophisticated I/O handling is
being used by the application.

UDP
---

.. autofunction:: dns.query.udp
.. autofunction:: dns.query.udp_with_fallback
.. autofunction:: dns.query.send_udp
.. autofunction:: dns.query.receive_udp

TCP
---

.. autofunction:: dns.query.tcp
.. autofunction:: dns.query.send_tcp
.. autofunction:: dns.query.receive_tcp

TLS
---

.. autofunction:: dns.query.tls

HTTPS
-----

.. autofunction:: dns.query.https

Zone Transfers
--------------

As of dnspython 2.1, :py:func:`dns.query.xfr` is deprecated.  Please use
:py:func:`dns.query.inbound_xfr` instead.

.. autoclass:: dns.query.UDPMode

.. autofunction:: dns.query.inbound_xfr

.. autofunction:: dns.query.xfr