summaryrefslogtreecommitdiff
path: root/dns
Commit message (Collapse)AuthorAgeFilesLines
* fix case of enum namesconstants2Bob Halley2020-08-0310-22/+22
|
* remove globals() enum updatingBob Halley2020-08-0310-20/+0
|
* add constantsBob Halley2020-08-0310-0/+209
|
* pylint lintingBob Halley2020-07-3115-48/+91
|
* the abstract wire parse method for Rdata is now from_wire_parser()Bob Halley2020-07-311-1/+1
|
* When validating a signature, derelativize before doing any label computations.Bob Halley2020-07-281-2/+7
| | | | | | Raise an error if the number of labels in the signature is longer than the number of labels in the owner name. (This is just to give a better error as the validation would fail anyway.)
* Raise NoPreviousName if a text message tries to refer to a previous name but ↵Bob Halley2020-07-281-0/+9
| | | | there is none.
* Return the message in question_only mode. [#556]Bob Halley2020-07-281-1/+1
|
* Merge pull request #553 from rthalley/wrapBob Halley2020-07-282-25/+40
|\ | | | | Wrap exceptions from rdata from_text() and from_wire().
| * Wrap exceptions from rdata from_text() and from_wire().wrapBob Halley2020-07-262-25/+40
| |
* | Apply the resolver search list, domain, and ndots settings in the same wayBob Halley2020-07-271-8/+34
| | | | | | | | that the BIND stub resolver library does.
* | Add missing lifetime parameter to dns.asyncresolver.resolve() [#555]Bob Halley2020-07-271-2/+3
|/
* increase TXT coverageBob Halley2020-07-261-1/+4
|
* remove test that can never be trueBob Halley2020-07-261-2/+0
|
* more resolver override testingBob Halley2020-07-261-2/+1
|
* exclude unpractical-to-test AttributeErrorBob Halley2020-07-261-1/+1
|
* increase EDNS coverageBob Halley2020-07-261-2/+2
|
* Remove checks already done by dns.dnssec.algorithm_from_text().Bob Halley2020-07-251-2/+0
|
* even on errors where we tolerate no question, check question if presentBob Halley2020-07-251-3/+5
|
* to_text() always returns a str, so no need to check if it is not a strBob Halley2020-07-241-5/+1
|
* ignore coverage on abstract methodsBob Halley2020-07-241-4/+4
|
* Allow an escaped newline in a quoted string.Bob Halley2020-07-231-1/+1
|
* more tokenizer coverage improvementsBob Halley2020-07-231-2/+2
|
* Add no cover for abstract method.Bob Halley2020-07-231-1/+1
|
* Improve name coverage slightly by testing the uts_46 branch in 2008 decode.Bob Halley2020-07-231-2/+3
| | | | | | I'm not sure how useful in practice this is, as we don't offer a codec configuration default for it, but I'm not sure you'd never do it, and the existing code was in the wrong order.
* Adjust no cover pragmas to better reflect what the Azure pipeline hits/misses.Bob Halley2020-07-221-10/+10
|
* Make resolver use_edns() conform to its docstring; slightly improve ↵Bob Halley2020-07-222-2/+4
| | | | use_edns() logic.
* Use min() for min_ttl computations.Bob Halley2020-07-211-8/+3
|
* fix exception docstringsBob Halley2020-07-211-10/+13
|
* set min ttl to max_ttl instead of special case -1Bob Halley2020-07-212-5/+7
|
* unify chaining codeBob Halley2020-07-212-66/+134
|
* Set EDNS default payload to 1232.Bob Halley2020-07-202-4/+6
|
* Fix resolver EDNS0 payload size when EDNS0 enabled by resolv.conf.Bob Halley2020-07-201-2/+2
| | | | [Issue #546]
* a way of doing commentscommentsBob Halley2020-07-2028-84/+103
|
* Add canonical_name() to async resolver too.Bob Halley2020-07-201-0/+30
|
* Remove unneeded str conversion; fix comment typo.Bob Halley2020-07-201-3/+4
|
* Add canonical_name() method to resolver.Bob Halley2020-07-201-0/+33
|
* Merge pull request #544 from rthalley/cache_statsBob Halley2020-07-201-4/+67
|\ | | | | Cache statistics
| * rename statistics class; add documentationcache_statsBob Halley2020-07-191-3/+3
| |
| * cache statisticsBob Halley2020-07-191-4/+67
| |
* | lintBob Halley2020-07-191-1/+1
|/
* Remove unneeded to_text/from_text in NXDOMAIN.canonical_name.Bob Halley2020-07-181-2/+2
|
* Add dns.edns.register_type().Brian Wellington2020-07-171-0/+10
| | | | This allows an application to register a custom EDNS option type.
* Disable coverage for BlockingIOError on udp send.Brian Wellington2020-07-171-1/+1
|
* Changes to blocking model.Brian Wellington2020-07-171-27/+40
| | | | | | | | | | | | | Before this change, the synchronous code would check sockets for readability or writability before doing nonblocking read or write. This changes them to attempt the read or write first, and then block if the operation could not complete. This also removes the no-longer-needed getpeername() call in tcp(), which was needed to deal with the case where an unconnected socket was passed in; waiting for writability would block rather than immediately return an error. By attempting the write first, we get the error immediately.
* Use the selectors module.Brian Wellington2020-07-171-71/+26
| | | | | | Previously, there was code to either use select.select or select.poll, depending on OS. This changes it to use the selectors module, using either SelectSelector or PollSelector, but sharing code otherwise.
* Minor cleanups to EDNS code.Brian Wellington2020-07-171-18/+7
| | | | | | | When the Message object was changed to store an OPT record, the changes to use_edns() left a lot of cruft. Reduce some code duplication in make_query().
* Merge pull request #536 from ngaya-ll/patch-1Bob Halley2020-07-171-9/+11
|\ | | | | Define additional return types in name.pyi
| * Define additional return types in name.pyiNick Gaya2020-07-161-9/+11
| |
* | update version post-releaseBob Halley2020-07-171-3/+3
| |