]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agouse dev<N> suffix for dev versions
Bob Halley [Tue, 16 Jun 2020 15:36:17 +0000 (08:36 -0700)] 
use dev<N> suffix for dev versions

5 years agoset rc1 in version
Bob Halley [Tue, 16 Jun 2020 15:33:12 +0000 (08:33 -0700)] 
set rc1 in version

5 years agoFix the DoH v6 literal fix.
Bob Halley [Tue, 16 Jun 2020 15:21:01 +0000 (08:21 -0700)] 
Fix the DoH v6 literal fix.

My first try at this did not play well with the refactoring of
_destination_and_source, as there will now be an af if source has one
and destination doesn't.  We only want to make special literal URLs when
the destination is a literal.

5 years agolint
Bob Halley [Tue, 16 Jun 2020 15:10:16 +0000 (08:10 -0700)] 
lint

5 years agotest DoH with both v4 and v6
Bob Halley [Tue, 16 Jun 2020 15:08:51 +0000 (08:08 -0700)] 
test DoH with both v4 and v6

5 years agoOverhaul _destination_and_source.
Bob Halley [Tue, 16 Jun 2020 14:57:59 +0000 (07:57 -0700)] 
Overhaul _destination_and_source.

We now use dns.inet.low_level_address_tuple() for the low-level tuple
conversion.

We now detect mismatches between source and destination address families.

If a source_port has been specified but we have no idea about the
family, complain.  (This can only happen when 'where' is a URL and no
source address has been specified either.)

'where' MUST be an address literal unless being called by DoH code, but we
tolerated failures in other cases.

In the DoH case where 'where' was a URL and source was specified, the
lack of an address family in the destination caused us to return None
for the source, and thus not set it even though the caller asked for it.
We now infer the address family from the source address in that case.

5 years agoUse the proper URL syntax for IPv6 address literals.
Bob Halley [Tue, 16 Jun 2020 14:57:21 +0000 (07:57 -0700)] 
Use the proper URL syntax for IPv6 address literals.

5 years agoadd azure badge
Bob Halley [Tue, 16 Jun 2020 03:42:38 +0000 (20:42 -0700)] 
add azure badge

5 years agotest IPv4 and IPv6 according to availability
Bob Halley [Tue, 16 Jun 2020 00:20:00 +0000 (17:20 -0700)] 
test IPv4 and IPv6 according to availability

5 years agoavoid getaddrinfo() when we can
Bob Halley [Tue, 16 Jun 2020 00:19:18 +0000 (17:19 -0700)] 
avoid getaddrinfo() when we can

5 years agoattempt to fix the last windows error
Bob Halley [Tue, 16 Jun 2020 00:18:37 +0000 (17:18 -0700)] 
attempt to fix the last windows error

5 years agocompare files in a way that avoids newlines issues on windows and gives better error...
Bob Halley [Tue, 16 Jun 2020 00:14:30 +0000 (17:14 -0700)] 
compare files in a way that avoids newlines issues on windows and gives better error results

5 years agoprint out more if file comparison fails
Bob Halley [Mon, 15 Jun 2020 23:52:46 +0000 (16:52 -0700)] 
print out more if file comparison fails

5 years agoSet up CI with Azure Pipelines
Bob Halley [Mon, 15 Jun 2020 22:18:20 +0000 (15:18 -0700)] 
Set up CI with Azure Pipelines

[skip ci]

5 years agoCreate SECURITY.md
Bob Halley [Sun, 14 Jun 2020 21:14:23 +0000 (14:14 -0700)] 
Create SECURITY.md

5 years agoMerge pull request #507 from rthalley/dependabot/pip/mypy-tw-0.780
Bob Halley [Sun, 14 Jun 2020 20:05:41 +0000 (13:05 -0700)] 
Merge pull request #507 from rthalley/dependabot/pip/mypy-tw-0.780

Update mypy requirement from ^0.770 to ^0.780

5 years agoMerge pull request #506 from rthalley/dependabot/pip/trio-gte-0.14-and-lt-0.17
Bob Halley [Sun, 14 Jun 2020 20:05:27 +0000 (13:05 -0700)] 
Merge pull request #506 from rthalley/dependabot/pip/trio-gte-0.14-and-lt-0.17

Update trio requirement from ^0.14 to >=0.14,<0.17

5 years agoUpdate mypy requirement from ^0.770 to ^0.780 507/head
dependabot[bot] [Sun, 14 Jun 2020 20:03:35 +0000 (20:03 +0000)] 
Update mypy requirement from ^0.770 to ^0.780

Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.770...v0.780)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoUpdate trio requirement from ^0.14 to >=0.14,<0.17 506/head
dependabot[bot] [Sun, 14 Jun 2020 20:03:28 +0000 (20:03 +0000)] 
Update trio requirement from ^0.14 to >=0.14,<0.17

Updates the requirements on [trio](https://github.com/python-trio/trio) to permit the latest version.
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](https://github.com/python-trio/trio/compare/v0.14.0...v0.16.0)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoCreate dependabot.yml
Bob Halley [Sun, 14 Jun 2020 20:02:45 +0000 (13:02 -0700)] 
Create dependabot.yml

5 years agoadd some test coverage for dns.query.xfr()
Bob Halley [Sun, 14 Jun 2020 19:44:23 +0000 (12:44 -0700)] 
add some test coverage for dns.query.xfr()

5 years agoset tcp_address correctly; allow handle() to return a list
Bob Halley [Sun, 14 Jun 2020 19:43:56 +0000 (12:43 -0700)] 
set tcp_address correctly; allow handle() to return a list

5 years agoAdd one_rr_per_rrset mode to text reader, as it is handy for testing.
Bob Halley [Sun, 14 Jun 2020 19:43:00 +0000 (12:43 -0700)] 
Add one_rr_per_rrset mode to text reader, as it is handy for testing.

5 years agoMerge pull request #504 from rthalley/async
Bob Halley [Sun, 14 Jun 2020 19:39:54 +0000 (12:39 -0700)] 
Merge pull request #504 from rthalley/async

Support trio, curio, and asyncio with one API!

5 years agoChange parameter order of low_level_address_tuple; add test coverage. 504/head
Bob Halley [Sat, 13 Jun 2020 18:40:54 +0000 (11:40 -0700)] 
Change parameter order of low_level_address_tuple; add test coverage.

5 years agomove low_level_address_tuple() to dns.inet; add some no-coverage comments
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

5 years agoAdd some comments about opportunities after 3.6 is not supported.
Bob Halley [Sat, 13 Jun 2020 17:57:46 +0000 (10:57 -0700)] 
Add some comments about opportunities after 3.6 is not supported.

5 years agoupdate extras
Bob Halley [Fri, 12 Jun 2020 21:01:34 +0000 (14:01 -0700)] 
update extras

5 years agoonly get_default_backend() when we need to, remove obsolete comment
Bob Halley [Fri, 12 Jun 2020 20:59:19 +0000 (13:59 -0700)] 
only get_default_backend() when we need to, remove obsolete comment

5 years agoadd curio (optional)
Bob Halley [Fri, 12 Jun 2020 20:58:45 +0000 (13:58 -0700)] 
add curio (optional)

5 years agofix typo
Bob Halley [Fri, 12 Jun 2020 20:50:09 +0000 (13:50 -0700)] 
fix typo

5 years agofix recvfrom, tls timing, and other misc things
Bob Halley [Fri, 12 Jun 2020 20:49:27 +0000 (13:49 -0700)] 
fix recvfrom, tls timing, and other misc things

5 years agodoco update
Bob Halley [Fri, 12 Jun 2020 20:48:16 +0000 (13:48 -0700)] 
doco update

5 years agofix comment
Bob Halley [Fri, 12 Jun 2020 20:47:28 +0000 (13:47 -0700)] 
fix comment

5 years agomake get_backend() shorter; improve sniffing; fail if we cannot tell the library
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

5 years agoFix bugs found by flake8.
Bob Halley [Fri, 12 Jun 2020 15:06:46 +0000 (08:06 -0700)] 
Fix bugs found by flake8.

5 years agoRe-enable TLS async tests.
Bob Halley [Fri, 12 Jun 2020 15:01:33 +0000 (08:01 -0700)] 
Re-enable TLS async tests.

5 years agoAdd TLS for asyncio.
Bob Halley [Fri, 12 Jun 2020 15:01:17 +0000 (08:01 -0700)] 
Add TLS for asyncio.

5 years agoadd timeout to curio.open_connection()
Bob Halley [Fri, 12 Jun 2020 14:42:47 +0000 (07:42 -0700)] 
add timeout to curio.open_connection()

5 years agoadd tls() to async doc
Bob Halley [Fri, 12 Jun 2020 14:39:25 +0000 (07:39 -0700)] 
add tls() to async doc

5 years agoread_exactly -> _read_exactly
Bob Halley [Fri, 12 Jun 2020 14:39:04 +0000 (07:39 -0700)] 
read_exactly -> _read_exactly

5 years agofix nanonameserver after removal of dns.trio
Bob Halley [Fri, 12 Jun 2020 14:38:34 +0000 (07:38 -0700)] 
fix nanonameserver after removal of dns.trio

5 years agoAdd TLS for Trio and Curio.
Bob Halley [Fri, 12 Jun 2020 14:31:57 +0000 (07:31 -0700)] 
Add TLS for Trio and Curio.

5 years agoadd type info
Bob Halley [Fri, 12 Jun 2020 13:54:43 +0000 (06:54 -0700)] 
add type info

5 years agolint
Bob Halley [Fri, 12 Jun 2020 13:40:40 +0000 (06:40 -0700)] 
lint

5 years agoasync doco
Bob Halley [Fri, 12 Jun 2020 13:32:15 +0000 (06:32 -0700)] 
async doco

5 years agoAttempt to cope with python 3.6 asyncio.
Bob Halley [Fri, 12 Jun 2020 03:01:23 +0000 (20:01 -0700)] 
Attempt to cope with python 3.6 asyncio.

5 years agoSupport trio, curio, and asyncio with one API!
Bob Halley [Fri, 12 Jun 2020 01:50:30 +0000 (18:50 -0700)] 
Support trio, curio, and asyncio with one API!

5 years agoimnprove comment
Bob Halley [Tue, 9 Jun 2020 14:08:13 +0000 (07:08 -0700)] 
imnprove comment

5 years agoMerge pull request #503 from bwelling/edns-updates
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.

5 years agoFix leaked socket in testQueryTLSWithSocket.
Brian Wellington [Mon, 8 Jun 2020 18:01:44 +0000 (11:01 -0700)] 
Fix leaked socket in testQueryTLSWithSocket.

5 years agoUpdates to dns.edns module. 503/head
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.

5 years agoAllow a socket to be passed to udp(), and a stream to stream().
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().

5 years agominor doco update
Bob Halley [Sat, 6 Jun 2020 22:41:02 +0000 (15:41 -0700)] 
minor doco update

5 years agoremove af, add sock
Bob Halley [Sat, 6 Jun 2020 13:55:25 +0000 (06:55 -0700)] 
remove af, add sock

5 years agoRemove more unneeded backwards compat, _winreg -> winreg
Bob Halley [Fri, 5 Jun 2020 20:57:38 +0000 (13:57 -0700)] 
Remove more unneeded backwards compat, _winreg -> winreg

5 years agoremove no longer needed backwards compat for collections.abc.MutableMapping
Bob Halley [Fri, 5 Jun 2020 16:46:31 +0000 (09:46 -0700)] 
remove no longer needed backwards compat for collections.abc.MutableMapping

5 years agoremove now-unused io imports
Bob Halley [Wed, 3 Jun 2020 23:15:42 +0000 (16:15 -0700)] 
remove now-unused io imports

5 years agoMerge pull request #502 from bwelling/object-super-cleanup
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.

5 years agoMinor Python 3 cleanups. 502/head
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().

5 years agoadd dns.trio to setup.py packages
Bob Halley [Wed, 3 Jun 2020 16:23:49 +0000 (09:23 -0700)] 
add dns.trio to setup.py packages

5 years agobail out early on ShortHeader
Bob Halley [Tue, 2 Jun 2020 14:30:47 +0000 (07:30 -0700)] 
bail out early on ShortHeader

5 years agopass peer and connection type to nanoserver handle()
Bob Halley [Tue, 2 Jun 2020 14:22:42 +0000 (07:22 -0700)] 
pass peer and connection type to nanoserver handle()

5 years agoRefactor common code between UDP and TCP; add basic exception handling
Bob Halley [Tue, 2 Jun 2020 14:05:46 +0000 (07:05 -0700)] 
Refactor common code between UDP and TCP; add basic exception handling

5 years agoMerge pull request #495 from rthalley/nanonameserver
Bob Halley [Tue, 2 Jun 2020 12:59:01 +0000 (05:59 -0700)] 
Merge pull request #495 from rthalley/nanonameserver

Nanonameserver

5 years agoswitch to relative import for nanonameserver 495/head
Bob Halley [Mon, 1 Jun 2020 22:45:02 +0000 (15:45 -0700)] 
switch to relative import for nanonameserver

5 years agoNSEC should NOT be downcased when canonicalized, nor should HIP or IPSECKEY; test all
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

5 years agoMerge pull request #499 from bwelling/to-wire
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().

5 years agoImprovements to dns.rdata.to_wire(). 499/head
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.

5 years agoRRSIG digestable might as well be right even if it is useless
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

5 years agocontinued line lint
Bob Halley [Mon, 1 Jun 2020 17:38:29 +0000 (10:38 -0700)] 
continued line lint

5 years agoMerge pull request #498 from bwelling/query-sockets
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.

5 years ago__iter__ is not needed in WireData at all
Bob Halley [Mon, 1 Jun 2020 17:36:01 +0000 (10:36 -0700)] 
__iter__ is not needed in WireData at all

5 years agoAdds sock parameters to query methods. 498/head
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.

5 years agoFix remaining canonical form problems, and add a test. [Issue #496]
Bob Halley [Mon, 1 Jun 2020 15:23:03 +0000 (08:23 -0700)] 
Fix remaining canonical form problems, and add a test.  [Issue #496]

5 years agoremove digestable test in favor of another coming soon
Bob Halley [Mon, 1 Jun 2020 15:00:56 +0000 (08:00 -0700)] 
remove digestable test in favor of another coming soon

5 years agoMerge pull request #497 from desec-io/lowercase_to_digestable
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

5 years agoLowercase SRV records in to_digestable(), fixes #496 497/head
Nils Wisiol [Mon, 1 Jun 2020 14:12:28 +0000 (16:12 +0200)] 
Lowercase SRV records in to_digestable(), fixes #496

5 years agoadd nanonamserver, a handy testing tool
Bob Halley [Sun, 31 May 2020 16:54:00 +0000 (09:54 -0700)] 
add nanonamserver, a handy testing tool

5 years agoExpose dns.trio.query.read_exactly() as it is useful.
Bob Halley [Sun, 31 May 2020 15:58:59 +0000 (08:58 -0700)] 
Expose dns.trio.query.read_exactly() as it is useful.

5 years agoimprove rrset and rdataset coverage
Bob Halley [Sat, 30 May 2020 14:12:54 +0000 (07:12 -0700)] 
improve rrset and rdataset coverage

5 years agoadd coverage report to output
Bob Halley [Sat, 30 May 2020 14:12:49 +0000 (07:12 -0700)] 
add coverage report to output

5 years agoWireData did not implement the iteration protocol correctly and was thus uniterable.
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.

5 years agotest cache hit with live resolver
Bob Halley [Fri, 29 May 2020 15:51:22 +0000 (08:51 -0700)] 
test cache hit with live resolver

5 years agothe prior fix for exception handling was still not right, missing a continue
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

5 years agoMerge pull request #494 from desec-io/hinfo_max_length
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

5 years agoCheck character-string length for HINFO records 494/head
Nils Wisiol [Fri, 29 May 2020 10:47:38 +0000 (12:47 +0200)] 
Check character-string length for HINFO records

5 years agoa bit more cache coverage
Bob Halley [Thu, 28 May 2020 16:05:31 +0000 (09:05 -0700)] 
a bit more cache coverage

5 years agoonly do multiple I/O backend testing for live tests, as testing everything 3 times...
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

5 years agomake _Resolution coverage 100%
Bob Halley [Thu, 28 May 2020 15:01:59 +0000 (08:01 -0700)] 
make _Resolution coverage 100%

5 years agoadd one more live resolver test (for NXDOMAIN)
Bob Halley [Thu, 28 May 2020 13:22:59 +0000 (06:22 -0700)] 
add one more live resolver test (for NXDOMAIN)

5 years agoMerge pull request #491 from pspacek/test_resolver_nodata
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

5 years agoFix resolve() NoAnswer problems from [Issue #488]
Bob Halley [Thu, 28 May 2020 13:03:54 +0000 (06:03 -0700)] 
Fix resolve() NoAnswer problems from [Issue #488]

5 years agoMerge pull request #490 from pspacek/test_cleanup
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

5 years agotests: resolver Nodata answers 491/head
Petr Špaček [Thu, 28 May 2020 07:55:24 +0000 (09:55 +0200)] 
tests: resolver Nodata answers

5 years agotests: remove forgotten prints 490/head
Petr Špaček [Thu, 28 May 2020 07:39:41 +0000 (09:39 +0200)] 
tests: remove forgotten prints

5 years agoMerge pull request #487 from pspacek/pickle_rdata
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

5 years agofurther tighten resolve() default settings
Bob Halley [Wed, 27 May 2020 20:30:05 +0000 (13:30 -0700)] 
further tighten resolve() default settings

5 years agomake rdata objects picklable again 487/head
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
5 years agoMerge pull request #483 from pspacek/cython3
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