]>
git.ipfire.org Git - thirdparty/dnspython.git/log
Bob Halley [Sat, 13 Jun 2020 18:40:54 +0000 (11:40 -0700)]
Change parameter order of low_level_address_tuple; add test coverage.
Bob Halley [Sat, 13 Jun 2020 18:25:42 +0000 (11:25 -0700)]
move low_level_address_tuple() to dns.inet; add some no-coverage comments
Bob Halley [Sat, 13 Jun 2020 17:57:46 +0000 (10:57 -0700)]
Add some comments about opportunities after 3.6 is not supported.
Bob Halley [Fri, 12 Jun 2020 21:01:34 +0000 (14:01 -0700)]
update extras
Bob Halley [Fri, 12 Jun 2020 20:59:19 +0000 (13:59 -0700)]
only get_default_backend() when we need to, remove obsolete comment
Bob Halley [Fri, 12 Jun 2020 20:58:45 +0000 (13:58 -0700)]
add curio (optional)
Bob Halley [Fri, 12 Jun 2020 20:50:09 +0000 (13:50 -0700)]
fix typo
Bob Halley [Fri, 12 Jun 2020 20:49:27 +0000 (13:49 -0700)]
fix recvfrom, tls timing, and other misc things
Bob Halley [Fri, 12 Jun 2020 20:48:16 +0000 (13:48 -0700)]
doco update
Bob Halley [Fri, 12 Jun 2020 20:47:28 +0000 (13:47 -0700)]
fix comment
Bob Halley [Fri, 12 Jun 2020 20:46:26 +0000 (13:46 -0700)]
make get_backend() shorter; improve sniffing; fail if we cannot tell the library
Bob Halley [Fri, 12 Jun 2020 15:01:33 +0000 (08:01 -0700)]
Re-enable TLS async tests.
Bob Halley [Fri, 12 Jun 2020 15:01:17 +0000 (08:01 -0700)]
Add TLS for asyncio.
Bob Halley [Fri, 12 Jun 2020 14:42:47 +0000 (07:42 -0700)]
add timeout to curio.open_connection()
Bob Halley [Fri, 12 Jun 2020 14:39:25 +0000 (07:39 -0700)]
add tls() to async doc
Bob Halley [Fri, 12 Jun 2020 14:39:04 +0000 (07:39 -0700)]
read_exactly -> _read_exactly
Bob Halley [Fri, 12 Jun 2020 14:38:34 +0000 (07:38 -0700)]
fix nanonameserver after removal of dns.trio
Bob Halley [Fri, 12 Jun 2020 14:31:57 +0000 (07:31 -0700)]
Add TLS for Trio and Curio.
Bob Halley [Fri, 12 Jun 2020 13:54:43 +0000 (06:54 -0700)]
add type info
Bob Halley [Fri, 12 Jun 2020 13:40:40 +0000 (06:40 -0700)]
lint
Bob Halley [Fri, 12 Jun 2020 13:32:15 +0000 (06:32 -0700)]
async doco
Bob Halley [Fri, 12 Jun 2020 03:01:23 +0000 (20:01 -0700)]
Attempt to cope with python 3.6 asyncio.
Bob Halley [Fri, 12 Jun 2020 01:50:30 +0000 (18:50 -0700)]
Support trio, curio, and asyncio with one API!
Bob Halley [Tue, 9 Jun 2020 14:08:13 +0000 (07:08 -0700)]
imnprove comment
Bob Halley [Mon, 8 Jun 2020 18:51:55 +0000 (11:51 -0700)]
Merge pull request #503 from bwelling/edns-updates
Updates to dns.edns module.
Brian Wellington [Mon, 8 Jun 2020 18:01:44 +0000 (11:01 -0700)]
Fix leaked socket in testQueryTLSWithSocket.
Brian Wellington [Mon, 8 Jun 2020 17:54:17 +0000 (10:54 -0700)]
Updates to dns.edns module.
Convert the option types to an enum, and allow the file parameter to
to_wire() methods to be optional.
Bob Halley [Sat, 6 Jun 2020 22:43:06 +0000 (15:43 -0700)]
Allow a socket to be passed to udp(), and a stream to stream().
Bob Halley [Sat, 6 Jun 2020 22:41:02 +0000 (15:41 -0700)]
minor doco update
Bob Halley [Sat, 6 Jun 2020 13:55:25 +0000 (06:55 -0700)]
remove af, add sock
Bob Halley [Fri, 5 Jun 2020 20:57:38 +0000 (13:57 -0700)]
Remove more unneeded backwards compat, _winreg -> winreg
Bob Halley [Fri, 5 Jun 2020 16:46:31 +0000 (09:46 -0700)]
remove no longer needed backwards compat for collections.abc.MutableMapping
Bob Halley [Wed, 3 Jun 2020 23:15:42 +0000 (16:15 -0700)]
remove now-unused io imports
Bob Halley [Wed, 3 Jun 2020 23:13:07 +0000 (16:13 -0700)]
Merge pull request #502 from bwelling/object-super-cleanup
Minor Python 3 cleanups.
Brian Wellington [Wed, 3 Jun 2020 22:56:58 +0000 (15:56 -0700)]
Minor Python 3 cleanups.
Classes inherit from object by default; there's no need to explicitly
include this.
Replace super(Foo, self) with super().
Bob Halley [Wed, 3 Jun 2020 16:23:49 +0000 (09:23 -0700)]
add dns.trio to setup.py packages
Bob Halley [Tue, 2 Jun 2020 14:30:47 +0000 (07:30 -0700)]
bail out early on ShortHeader
Bob Halley [Tue, 2 Jun 2020 14:22:42 +0000 (07:22 -0700)]
pass peer and connection type to nanoserver handle()
Bob Halley [Tue, 2 Jun 2020 14:05:46 +0000 (07:05 -0700)]
Refactor common code between UDP and TCP; add basic exception handling
Bob Halley [Tue, 2 Jun 2020 12:59:01 +0000 (05:59 -0700)]
Merge pull request #495 from rthalley/nanonameserver
Nanonameserver
Bob Halley [Mon, 1 Jun 2020 22:45:02 +0000 (15:45 -0700)]
switch to relative import for nanonameserver
Bob Halley [Mon, 1 Jun 2020 20:49:59 +0000 (13:49 -0700)]
NSEC should NOT be downcased when canonicalized, nor should HIP or IPSECKEY; test all
Bob Halley [Mon, 1 Jun 2020 20:34:51 +0000 (13:34 -0700)]
Merge pull request #499 from bwelling/to-wire
Improvements to dns.rdata.to_wire().
Brian Wellington [Mon, 1 Jun 2020 18:32:03 +0000 (11:32 -0700)]
Improvements to dns.rdata.to_wire().
This does two things.
1) Makes the file parameter optional, removing the requirement that
callers create an io.BytesIO object if all they want is the bytes. This
is done by renaming all of the rdata subclass to_wire() methods to
_to_wire(), and making dns.rdata.to_wire() create the io.BytesIO
internally if needed, and then delegate to the subclass.
2) Add canonicalize=False parameter, allowing code reuse for conversion
to wire format and conversion to hashable format. This also removes all
of the rdata subclass to_digestable routines that are no longer needed,
as dns.rdata.to_digestable will work for all rdata types.
Bob Halley [Mon, 1 Jun 2020 17:46:23 +0000 (10:46 -0700)]
RRSIG digestable might as well be right even if it is useless
Bob Halley [Mon, 1 Jun 2020 17:38:29 +0000 (10:38 -0700)]
continued line lint
Bob Halley [Mon, 1 Jun 2020 17:36:52 +0000 (10:36 -0700)]
Merge pull request #498 from bwelling/query-sockets
Adds sock parameters to query methods.
Bob Halley [Mon, 1 Jun 2020 17:36:01 +0000 (10:36 -0700)]
__iter__ is not needed in WireData at all
Brian Wellington [Mon, 1 Jun 2020 17:09:37 +0000 (10:09 -0700)]
Adds sock parameters to query methods.
Allow passing a socket into dns.query.{udp,tcp,tls,udp_with_fallback},
and add tests for this.
Bob Halley [Mon, 1 Jun 2020 15:23:03 +0000 (08:23 -0700)]
Fix remaining canonical form problems, and add a test. [Issue #496]
Bob Halley [Mon, 1 Jun 2020 15:00:56 +0000 (08:00 -0700)]
remove digestable test in favor of another coming soon
Bob Halley [Mon, 1 Jun 2020 14:59:12 +0000 (07:59 -0700)]
Merge pull request #497 from desec-io/lowercase_to_digestable
Lowercasing in to_digestable() methods for records containing DNS names
Nils Wisiol [Mon, 1 Jun 2020 14:12:28 +0000 (16:12 +0200)]
Lowercase SRV records in to_digestable(), fixes #496
Bob Halley [Sun, 31 May 2020 16:54:00 +0000 (09:54 -0700)]
add nanonamserver, a handy testing tool
Bob Halley [Sun, 31 May 2020 15:58:59 +0000 (08:58 -0700)]
Expose dns.trio.query.read_exactly() as it is useful.
Bob Halley [Sat, 30 May 2020 14:12:54 +0000 (07:12 -0700)]
improve rrset and rdataset coverage
Bob Halley [Sat, 30 May 2020 14:12:49 +0000 (07:12 -0700)]
add coverage report to output
Bob Halley [Sat, 30 May 2020 13:37:14 +0000 (06:37 -0700)]
WireData did not implement the iteration protocol correctly and was thus uniterable.
Bob Halley [Fri, 29 May 2020 15:51:22 +0000 (08:51 -0700)]
test cache hit with live resolver
Bob Halley [Fri, 29 May 2020 15:48:23 +0000 (08:48 -0700)]
the prior fix for exception handling was still not right, missing a continue
Bob Halley [Fri, 29 May 2020 12:50:55 +0000 (05:50 -0700)]
Merge pull request #494 from desec-io/hinfo_max_length
Check character-string length for HINFO records
Nils Wisiol [Fri, 29 May 2020 10:47:38 +0000 (12:47 +0200)]
Check character-string length for HINFO records
Bob Halley [Thu, 28 May 2020 16:05:31 +0000 (09:05 -0700)]
a bit more cache coverage
Bob Halley [Thu, 28 May 2020 15:02:52 +0000 (08:02 -0700)]
only do multiple I/O backend testing for live tests, as testing everything 3 times is pointless work
Bob Halley [Thu, 28 May 2020 15:01:59 +0000 (08:01 -0700)]
make _Resolution coverage 100%
Bob Halley [Thu, 28 May 2020 13:22:59 +0000 (06:22 -0700)]
add one more live resolver test (for NXDOMAIN)
Bob Halley [Thu, 28 May 2020 13:04:27 +0000 (06:04 -0700)]
Merge pull request #491 from pspacek/test_resolver_nodata
tests: resolver Nodata answers
Bob Halley [Thu, 28 May 2020 13:03:54 +0000 (06:03 -0700)]
Fix resolve() NoAnswer problems from [Issue #488]
Bob Halley [Thu, 28 May 2020 12:35:00 +0000 (05:35 -0700)]
Merge pull request #490 from pspacek/test_cleanup
tests: remove forgotten prints
Petr Špaček [Thu, 28 May 2020 07:55:24 +0000 (09:55 +0200)]
tests: resolver Nodata answers
Petr Špaček [Thu, 28 May 2020 07:39:41 +0000 (09:39 +0200)]
tests: remove forgotten prints
Bob Halley [Wed, 27 May 2020 20:36:03 +0000 (13:36 -0700)]
Merge pull request #487 from pspacek/pickle_rdata
make rdata objects picklable again
Bob Halley [Wed, 27 May 2020 20:30:05 +0000 (13:30 -0700)]
further tighten resolve() default settings
Petr Špaček [Wed, 27 May 2020 09:06:41 +0000 (11:06 +0200)]
make rdata objects picklable again
__getstate__ implementation based on tuple and ordered __slots__
is slightly faster than implementation based on dicts.
It also produces smaller blobs.
Speed of this implementation is +- few percents the same
as it was in dnspython 1.16.0 and it now produces smaller blobs.
Fixes: #485
Bob Halley [Mon, 25 May 2020 13:29:09 +0000 (06:29 -0700)]
Merge pull request #483 from pspacek/cython3
fix cythonization for Python 3
Petr Špaček [Mon, 25 May 2020 13:15:10 +0000 (15:15 +0200)]
fix cythonization for Python 3
Bob Halley [Sun, 24 May 2020 01:04:12 +0000 (18:04 -0700)]
document Trio code
Bob Halley [Sun, 24 May 2020 00:44:41 +0000 (17:44 -0700)]
do not build universal wheels as we are python 3 only
Bob Halley [Sat, 23 May 2020 22:18:05 +0000 (15:18 -0700)]
increase test coverage for various things
Bob Halley [Sat, 23 May 2020 21:27:04 +0000 (14:27 -0700)]
clearly people do not delete from NameDicts very often
Bob Halley [Sat, 23 May 2020 20:58:34 +0000 (13:58 -0700)]
leading zero detection in dns.ipv4.inet_aton() was broken
Bob Halley [Sat, 23 May 2020 20:27:04 +0000 (13:27 -0700)]
add some resolver intro doc
Bob Halley [Sat, 23 May 2020 17:33:25 +0000 (10:33 -0700)]
basic testing of entropy and resolver override
Bob Halley [Sat, 23 May 2020 17:32:54 +0000 (10:32 -0700)]
fix None pointers in LRU cache sentinel
Bob Halley [Fri, 22 May 2020 15:54:44 +0000 (08:54 -0700)]
revision of truncation handling
Bob Halley [Thu, 21 May 2020 21:43:41 +0000 (14:43 -0700)]
mention negative caching in whatsnew
Bob Halley [Thu, 21 May 2020 21:35:40 +0000 (14:35 -0700)]
add NXDOMAIN caching
Bob Halley [Thu, 21 May 2020 21:27:06 +0000 (14:27 -0700)]
pop() with no arguements means last, but I used it intending first
Bob Halley [Thu, 21 May 2020 18:23:53 +0000 (11:23 -0700)]
remove historical af argument to query functions
Bob Halley [Thu, 21 May 2020 18:18:43 +0000 (11:18 -0700)]
Merge pull request #479 from bwelling/rename-to-enum
Remove dns.rdata{type,class}.to_enum.
Brian Wellington [Thu, 21 May 2020 17:53:24 +0000 (10:53 -0700)]
Remove dns.rdata{type,class}.to_enum.
These methods (which convert a str/int into an enum/int) shouldn't be
commonly used by external code, so don't need to exist at the module
level. The make() method on the enum class (renamed from to_enum()) can
still be used, and the internal callers have been updated to use it.
Bob Halley [Thu, 21 May 2020 14:52:04 +0000 (07:52 -0700)]
correct inaccuracy
Bob Halley [Thu, 21 May 2020 14:50:13 +0000 (07:50 -0700)]
note that new async APIs are experimental
Bob Halley [Thu, 21 May 2020 14:46:39 +0000 (07:46 -0700)]
fix typo
Bob Halley [Thu, 21 May 2020 14:44:32 +0000 (07:44 -0700)]
lint: remove unused sys import
Bob Halley [Thu, 21 May 2020 14:43:55 +0000 (07:43 -0700)]
do not run DoH tests if there is no network
Bob Halley [Thu, 21 May 2020 14:41:21 +0000 (07:41 -0700)]
test trio async code
Bob Halley [Thu, 21 May 2020 14:40:19 +0000 (07:40 -0700)]
add some basic resolution testing
Bob Halley [Thu, 21 May 2020 14:47:50 +0000 (07:47 -0700)]
Merge pull request #478 from bwelling/query-use-context-managers
Use context managers in the query methods.
Bob Halley [Thu, 21 May 2020 13:58:17 +0000 (06:58 -0700)]
use clock time not trio time