]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agoDS: support mnemonic format from RFC 4034 section 5.3 511/head
Petr Špaček [Thu, 18 Jun 2020 09:24:10 +0000 (11:24 +0200)] 
DS: support mnemonic format from RFC 4034 section 5.3

5 years agoMerge pull request #510 from bwelling/renderer
Bob Halley [Thu, 18 Jun 2020 03:11:46 +0000 (20:11 -0700)] 
Merge pull request #510 from bwelling/renderer

Simplify renderer code.

5 years agoimprove tokenizer coverage
Bob Halley [Thu, 18 Jun 2020 03:06:35 +0000 (20:06 -0700)] 
improve tokenizer coverage

5 years agoImprove the comment on get_int(), as it is unsigned.
Bob Halley [Thu, 18 Jun 2020 03:04:33 +0000 (20:04 -0700)] 
Improve the comment on get_int(), as it is unsigned.

Add missing base parameter to get_uint32.

Don't copy get_int in get_uint32, just call get_int.

get_uint32 erroneously permitted 4294967296.

remove cut-and-paste origin parameter to get_string() and get_identifier().

5 years agoSimplify renderer code. 510/head
Brian Wellington [Thu, 18 Jun 2020 02:15:07 +0000 (19:15 -0700)] 
Simplify renderer code.

Use context manager to avoid duplicating length checking in many places.
Change the code dealing with EDNS options to avoid lots of seeking by
not rendering directly into the file.

5 years agoOptimize wiredata __getitem__.
Brian Wellington [Wed, 17 Jun 2020 23:08:20 +0000 (16:08 -0700)] 
Optimize wiredata __getitem__.

When getting an item (not a slice), call bytes.__getitem__ directly
rather than creating a new bytes object.

5 years agoTest message encoding with EDNS options.
Brian Wellington [Wed, 17 Jun 2020 22:13:12 +0000 (15:13 -0700)] 
Test message encoding with EDNS options.

5 years agomake passing a socket to async routines actually work
Bob Halley [Wed, 17 Jun 2020 21:05:30 +0000 (14:05 -0700)] 
make passing a socket to async routines actually work

5 years agoTest dns.name.__le__ and __ge__.
Brian Wellington [Wed, 17 Jun 2020 20:32:27 +0000 (13:32 -0700)] 
Test dns.name.__le__ and __ge__.

5 years agosimplify TTL check when reading a zone file
Bob Halley [Wed, 17 Jun 2020 20:16:38 +0000 (13:16 -0700)] 
simplify TTL check when reading a zone file

5 years agoFix typo.
Brian Wellington [Wed, 17 Jun 2020 20:07:13 +0000 (13:07 -0700)] 
Fix typo.

5 years agoTest `dns.name.from_unicode` with escapes.
Brian Wellington [Wed, 17 Jun 2020 19:58:59 +0000 (12:58 -0700)] 
Test `dns.name.from_unicode` with escapes.

5 years agodo not omit rdtypes on coverage summary
Bob Halley [Wed, 17 Jun 2020 19:40:33 +0000 (12:40 -0700)] 
do not omit rdtypes on coverage summary

5 years agotest bad class in zone
Bob Halley [Wed, 17 Jun 2020 19:29:37 +0000 (12:29 -0700)] 
test bad class in zone

5 years agoAdd a basic test of retrieving entropy.
Brian Wellington [Wed, 17 Jun 2020 19:24:01 +0000 (12:24 -0700)] 
Add a basic test of retrieving entropy.

5 years agoimprove coverage
Bob Halley [Wed, 17 Jun 2020 19:03:37 +0000 (12:03 -0700)] 
improve coverage

5 years agoremove unneeded exception catching from rhs setting in $GENERATE code (cut-and-paste...
Bob Halley [Wed, 17 Jun 2020 19:03:03 +0000 (12:03 -0700)] 
remove unneeded exception catching from rhs setting in $GENERATE code (cut-and-paste issue)

5 years agoTreat OSErrors during resolution as permanent failures, in line with other
Bob Halley [Wed, 17 Jun 2020 18:39:17 +0000 (11:39 -0700)] 
Treat OSErrors during resolution as permanent failures, in line with other
stub resolvers.

Reduce default lifetime from 30 seconds to 5 seconds.

5 years agoImprove EDNS option test coverage.
Brian Wellington [Wed, 17 Jun 2020 18:50:25 +0000 (11:50 -0700)] 
Improve EDNS option test coverage.

5 years agosome IDNA 2008 tests were not getting skipped if idna was not available
Bob Halley [Wed, 17 Jun 2020 17:43:44 +0000 (10:43 -0700)] 
some IDNA 2008 tests were not getting skipped if idna was not available

5 years agoNow that rdata are immutable, there is no point to the validate() method, so
Bob Halley [Wed, 17 Jun 2020 15:00:34 +0000 (08:00 -0700)] 
Now that rdata are immutable, there is no point to the validate() method, so
remove it.

5 years agofix sniffio-less asyncio detection on 3.6.x
Bob Halley [Wed, 17 Jun 2020 14:50:10 +0000 (07:50 -0700)] 
fix sniffio-less asyncio detection on 3.6.x

5 years agoimprove async coverage
Bob Halley [Wed, 17 Jun 2020 14:46:36 +0000 (07:46 -0700)] 
improve async coverage

5 years agoignore unimportant stuff in coverage
Bob Halley [Wed, 17 Jun 2020 14:45:35 +0000 (07:45 -0700)] 
ignore unimportant stuff in coverage

5 years agoremove debugging prints
Bob Halley [Wed, 17 Jun 2020 14:45:13 +0000 (07:45 -0700)] 
remove debugging prints

5 years agoexclude unwanted from coverage report
Bob Halley [Wed, 17 Jun 2020 14:43:28 +0000 (07:43 -0700)] 
exclude unwanted from coverage report

5 years agoThe dns.inet.AF_* portability scheme is no longer needed.
Bob Halley [Wed, 17 Jun 2020 02:37:01 +0000 (19:37 -0700)] 
The dns.inet.AF_* portability scheme is no longer needed.

5 years agofull coverage for _destination_and_source()
Bob Halley [Wed, 17 Jun 2020 00:30:08 +0000 (17:30 -0700)] 
full coverage for _destination_and_source()

5 years agofurther test low_level_address_tuple()
Bob Halley [Wed, 17 Jun 2020 00:20:57 +0000 (17:20 -0700)] 
further test low_level_address_tuple()

5 years agomake skip message accurate
Bob Halley [Tue, 16 Jun 2020 23:59:33 +0000 (16:59 -0700)] 
make skip message accurate

5 years agoavoid unneeded coverage warnings
Bob Halley [Tue, 16 Jun 2020 23:58:44 +0000 (16:58 -0700)] 
avoid unneeded coverage warnings

5 years agoImprove resolver coverage by:
Bob Halley [Tue, 16 Jun 2020 23:51:10 +0000 (16:51 -0700)] 
Improve resolver coverage by:

Testing more stuff.

Ignoring coverage of Windows as we have no way to integrate coverage data
from windows test runs at this time.

Ignoring other not important things.

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

5 years agoTest AXFR with TSIG.
Brian Wellington [Tue, 16 Jun 2020 22:34:12 +0000 (15:34 -0700)] 
Test AXFR with TSIG.

5 years agoAdd support for TSIG on multi-message responses.
Brian Wellington [Tue, 16 Jun 2020 22:33:34 +0000 (15:33 -0700)] 
Add support for TSIG on multi-message responses.

5 years agoAdd support for multi-message TSIG.
Brian Wellington [Tue, 16 Jun 2020 22:19:29 +0000 (15:19 -0700)] 
Add support for multi-message TSIG.

The underlying renderer code supported this, but it was not exposed
through message.to_wire().

5 years agoFix typo.
Brian Wellington [Tue, 16 Jun 2020 22:13:59 +0000 (15:13 -0700)] 
Fix typo.

5 years agoTake nameservers that are not IPv4/v6 addresses or https URLs out of the
Bob Halley [Tue, 16 Jun 2020 21:01:12 +0000 (14:01 -0700)] 
Take nameservers that are not IPv4/v6 addresses or https URLs out of the
mix.

This also fixes the UnboundLocalError from [Issue #509].

5 years agoTest sending a query with TSIG.
Brian Wellington [Tue, 16 Jun 2020 20:42:31 +0000 (13:42 -0700)] 
Test sending a query with TSIG.

5 years agoAdd nanonameserver support for TSIG.
Brian Wellington [Tue, 16 Jun 2020 20:42:09 +0000 (13:42 -0700)] 
Add nanonameserver support for TSIG.

5 years agoFix typo.
Brian Wellington [Tue, 16 Jun 2020 18:20:21 +0000 (11:20 -0700)] 
Fix typo.

5 years agosimplify DoH POST
Bob Halley [Tue, 16 Jun 2020 17:20:48 +0000 (10:20 -0700)] 
simplify DoH POST

5 years agosimplify DoH GET
Bob Halley [Tue, 16 Jun 2020 17:19:03 +0000 (10:19 -0700)] 
simplify DoH GET

5 years agoAdd missing comma.
Bob Halley [Tue, 16 Jun 2020 17:05:51 +0000 (10:05 -0700)] 
Add missing comma.

5 years agoAdd an IPv6 address for Cloudflare DoH that works.
Bob Halley [Tue, 16 Jun 2020 17:05:19 +0000 (10:05 -0700)] 
Add an IPv6 address for Cloudflare DoH that works.

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