summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* a way of doing commentscommentsBob Halley2020-07-2034-88/+189
|
* Merge pull request #542 from rthalley/canonical_nameBob Halley2020-07-206-0/+100
|\ | | | | Canonical name
| * Add canonical_name() to async resolver too.Bob Halley2020-07-203-0/+51
| |
| * Remove unneeded str conversion; fix comment typo.Bob Halley2020-07-201-3/+4
| |
| * better test styleBob Halley2020-07-201-3/+3
| |
| * Add canonical_name() method to resolver.Bob Halley2020-07-203-0/+48
|/
* Merge pull request #544 from rthalley/cache_statsBob Halley2020-07-203-5/+110
|\ | | | | Cache statistics
| * rename statistics class; add documentationcache_statsBob Halley2020-07-192-4/+11
| |
| * cache statisticsBob Halley2020-07-192-4/+102
| |
* | lintBob Halley2020-07-191-1/+1
|/
* Remove unneeded to_text/from_text in NXDOMAIN.canonical_name.Bob Halley2020-07-181-2/+2
|
* Merge pull request #540 from bwelling/edns-option-registrationBob Halley2020-07-173-0/+48
|\ | | | | Add dns.edns.register_type().
| * Add documentation.Brian Wellington2020-07-171-0/+1
| |
| * Add dns.edns.register_type().Brian Wellington2020-07-172-0/+47
|/ | | | This allows an application to register a custom EDNS option type.
* Merge pull request #539 from bwelling/blockingBob Halley2020-07-171-27/+40
|\ | | | | Changes to blocking model.
| * 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.
* Merge pull request #538 from bwelling/selectorsBob Halley2020-07-173-94/+35
|\ | | | | Use the selectors module.
| * Use the selectors module.Brian Wellington2020-07-173-94/+35
|/ | | | | | 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.
* Merge pull request #537 from bwelling/edns-cleanupBob Halley2020-07-171-18/+7
|\ | | | | Minor cleanups to EDNS code.
| * 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-174-6/+6
| |
* | 2.0.0 versioningv2.0.0Bob Halley2020-07-164-5/+5
|/
* Add DoH JSON example.Bob Halley2020-07-131-0/+92
|
* make executableBob Halley2020-07-102-0/+0
|
* add ECS exampleBob Halley2020-07-101-0/+15
|
* Fix _wordbreak() to always return a str.Brian Wellington2020-07-091-5/+6
|
* Generalize the word breaking code.Brian Wellington2020-07-091-13/+14
| | | | | Refactor common code from _base64ify and _hexify, and also add support for _hexify to skip word breaks.
* Make dns.rdata._base64ify(..., 0) work.Brian Wellington2020-07-092-2/+4
| | | | | | | | | | In some cases, the caller absolutely doesn't want word breaks. This shouldn't be the case for any normal DNS record, but is for records that don't have well-defined text formats, like TSIG and TKEY. Allow them to pass 0 (or None), to indicate that no word breaks should be added. Previously, passing either 0 or None resulted in an exception, as the value was used directly as the step in a slice.
* Merge pull request #533 from bwelling/receive_queriesBob Halley2020-07-087-32/+104
|\ | | | | Receive queries
| * Add coverage for TCP/TLS async getsockname.Brian Wellington2020-07-081-0/+4
| |
| * Add support for receiving UDP queries.Brian Wellington2020-07-087-32/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing receive_udp() methods are only usable for receiving responses, as they require an expected destination and check that the message is from that destination. This change makes the expected destination (and hence the check) optional, and returns the address that the message was received from (in the sync case, this is only done if no destination is provided, for backwards compatibility). New tests are added, which required adding generic getsockname() support to the async backends.
* | apply patch codecov rulesBob Halley2020-07-081-0/+4
|/
* Don't read resolv.conf in tests that don't use it.Brian Wellington2020-07-084-9/+10
|
* Fix return type docs for receive methods.Brian Wellington2020-07-082-4/+8
|
* Remove debugging print.Brian Wellington2020-07-081-1/+0
|
* Move __str__ to the generic Option code.Brian Wellington2020-07-081-5/+3
| | | | | | ECSOption and GenericOption both contained a __str__ method that called to_text(), but the base Option class did not. Move __str__ to the base class.
* Merge pull request #531 from bwelling/tsig2Bob Halley2020-07-072-33/+53
|\ | | | | Split TSIG sign and validate.
| * Split TSIG sign and validate.Brian Wellington2020-07-072-33/+53
| |
* | Add DSOTYPENI rcode.Bob Halley2020-07-071-0/+2
| |
* | TSIG code now uses dns.rcode.Rcode enum values for the TSIG error field.Bob Halley2020-07-074-19/+34
| |
* | Merge pull request #532 from HsiehYuho/extrcodeBob Halley2020-07-071-0/+16
|\ \ | | | | | | Support more DNS rcode
| * | Support more DNS rcodeYu-Ho Hsieh2020-07-071-0/+16
| | | | | | | | | | | | | | | More DNS rcodes are assigned. Support rcode assigned before RFC7873 https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6
* | | Fix Message ednsflags propery setter.Brian Wellington2020-07-071-1/+1
|/ / | | | | | | Setting ednsflags to 0 shouldn't unconditionally enable EDNS.
* | Fix Message.want_dnssec().Brian Wellington2020-07-072-1/+2
|/ | | | | It was incorrectly calling Message._make_opt() in the case where the message was not currently using EDNS.
* Remove too strong "no metaclasses" check in _parse_rr_header().Bob Halley2020-07-071-2/+0
|
* Give up on socket.getfqdn() testing with CDN-hosted resources as it has too ↵Bob Halley2020-07-061-7/+16
| | | | much magic.
* In gethostbyaddr(), remove unneeded workarounds for getfqdn().Bob Halley2020-07-061-7/+7
|