summaryrefslogtreecommitdiff
path: root/doc/trio-query.rst
blob: d4d039258d8356722fb1462fd40bde83185aa688 (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
.. module:: dns.trio.query
.. _trio-query:

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

The ``dns.trio.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.trio.resolver`` module; see
:ref:`trio_resolver`.

There is currently no support for zone transfers or DNS-over-HTTPS
using Trio, but we hope to offer this in the future.

UDP
---

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

Streams (TCP and TLS)
---------------------

.. autofunction:: dns.trio.query.stream
.. autofunction:: dns.trio.query.send_stream
.. autofunction:: dns.trio.query.receive_stream