diff options
author | Brian Wellington <bwelling@xbill.org> | 2021-10-13 16:31:03 -0700 |
---|---|---|
committer | Brian Wellington <bwelling@xbill.org> | 2021-10-13 16:32:46 -0700 |
commit | fd830f71579f8337d0f9a0c3c40e7b5683957cc4 (patch) | |
tree | e5ca14354d5455f3b7f04f32b59c36d427e1d895 | |
parent | 46668dc9f1ae7335c9587f1b37abee19a2548c96 (diff) | |
download | dnspython-fd830f71579f8337d0f9a0c3c40e7b5683957cc4.tar.gz |
Improve dns.message.make_query() docs.
Update the docs to match the code. Specifically, the docs implied that
EDNS was only enabled if use_edns was set, while the code would enable
EDNS if any parameter that required EDNS was set and use_edns was not
set.
-rw-r--r-- | dns/message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dns/message.py b/dns/message.py index 6fa90ca..baa1116 100644 --- a/dns/message.py +++ b/dns/message.py @@ -1400,7 +1400,9 @@ def make_query(qname, rdtype, rdclass=dns.rdataclass.IN, use_edns=None, is class IN. *use_edns*, an ``int``, ``bool`` or ``None``. The EDNS level to use; the - default is None (no EDNS). + default is ``None``. If ``None``, EDNS will be enabled only if other + parameters (*ednsflags*, *payload*, *request_payload*, or *options*) are + set. See the description of dns.message.Message.use_edns() for the possible values for use_edns and their meanings. |