]>
git.ipfire.org Git - thirdparty/dnspython.git/log
Brian Wellington [Fri, 11 Oct 2024 20:34:57 +0000 (13:34 -0700)]
Add dns.edns.Option.to_generic() (#1145)
* Add dns.edns.Option.to_generic()
Converts an EDNS option represented by a custom class into an equivalent
option represented by the generic option class. This is similar to the
existing dns.rdata.Rdata.to_generic() method.
Also, adds a specialization to the existing dns.rdata.Rdata.to_generic()
method for GenericRdata, to avoid extra work for applications that want
to convert all rdata to generic form.
* Fix typing issue.
* Fix typing again.
dependabot[bot] [Wed, 9 Oct 2024 16:47:28 +0000 (09:47 -0700)]
Bump sphinx-rtd-theme from 3.0.0 to 3.0.1 (#1144)
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) from 3.0.0 to 3.0.1.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst)
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/3.0.0...3.0.1)
---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Tue, 8 Oct 2024 15:22:35 +0000 (08:22 -0700)]
Bump sphinx-rtd-theme from 2.0.0 to 3.0.0 (#1142)
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) from 2.0.0 to 3.0.0.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst)
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/2.0.0...3.0.0)
---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bob Halley [Mon, 7 Oct 2024 11:12:18 +0000 (04:12 -0700)]
Adjust Answer iterator return type as Rdata is unhelpful. Any is
better as then duck typing is used, which is inherent to the design
[#1141].
Ron Green [Sat, 5 Oct 2024 16:48:12 +0000 (18:48 +0200)]
fix(answer): add typing to range (#1138)
Bob Halley [Sat, 5 Oct 2024 16:36:15 +0000 (09:36 -0700)]
Use the port from the URL if provided for H3 [#1139]
Bob Halley [Wed, 25 Sep 2024 15:29:13 +0000 (08:29 -0700)]
fix doco typo
Jakob Schlyter [Sun, 22 Sep 2024 14:12:03 +0000 (16:12 +0200)]
fix typo (#1133)
Bob Halley [Sat, 21 Sep 2024 21:14:41 +0000 (14:14 -0700)]
update ci matrix
Bob Halley [Sat, 21 Sep 2024 16:53:53 +0000 (09:53 -0700)]
CI 2.7 testing and also remove python 3.8
Bob Halley [Sat, 21 Sep 2024 16:51:32 +0000 (09:51 -0700)]
2.7.0 prep
Bob Halley [Sat, 21 Sep 2024 16:47:44 +0000 (09:47 -0700)]
2.8.0 version
Bob Halley [Sat, 21 Sep 2024 16:41:14 +0000 (09:41 -0700)]
fix typing after reorganization
Bob Halley [Sat, 21 Sep 2024 16:38:03 +0000 (09:38 -0700)]
lint
Bob Halley [Sat, 21 Sep 2024 16:37:02 +0000 (09:37 -0700)]
linting
Bob Halley [Sat, 21 Sep 2024 16:00:28 +0000 (09:00 -0700)]
Reorganize _parse_modify() to remove spurious warnings
about used-before-set variables, and avoid extra re matching
when not needed.
Bob Halley [Sat, 21 Sep 2024 15:54:25 +0000 (08:54 -0700)]
add WALLET to rdata-subclasses.rst
Bob Halley [Sat, 21 Sep 2024 15:52:01 +0000 (08:52 -0700)]
regenerate rdatatype list for doco
Bob Halley [Sat, 21 Sep 2024 15:50:55 +0000 (08:50 -0700)]
update features
Bob Halley [Sat, 21 Sep 2024 15:46:31 +0000 (08:46 -0700)]
more doco updates for 2.7
Bob Halley [Tue, 17 Sep 2024 13:14:07 +0000 (06:14 -0700)]
missed a master -> main in the README
Bob Halley [Tue, 17 Sep 2024 12:56:14 +0000 (05:56 -0700)]
Add a copy mode to dns.message.make_response(). (#1131)
Add a copy mode to dns.message.make_response().
If the mode is none, then a default copy mode appropriate for the opcode will
be used. This is currently always dns.message.CopyMode.QUESTION.
If the mode is dns.message.CopyMode.QUESTION then only the question
section is copied.
If the mode is dns.message.CopyMode.EVERYTHING, then all sections are
copied other than OPT or TSIG records which are created appropriately
if needed instead of being copied.
If the mode is dns.message.CopyMode.NOTHING then no sections are
copied.
Bob Halley [Sat, 14 Sep 2024 20:53:35 +0000 (13:53 -0700)]
disable uv as mypy auto type install does not work with it
Bob Halley [Sat, 14 Sep 2024 15:51:39 +0000 (08:51 -0700)]
Check SAN for IP if using an address URL in https() [#1125].
Httpx needs us to set the "sni_hostname" extension if the
server in the URL is an IP address, as otherwise it will not
check the certificate. With this change, it will look for a
SAN with the IP address.
Bob Halley [Fri, 13 Sep 2024 18:37:22 +0000 (11:37 -0700)]
black autoformatting fixes
Brian Wellington [Fri, 13 Sep 2024 18:33:51 +0000 (11:33 -0700)]
Only create httpx transports when needed. (#1130)
When a caller passes an httpx client to https(), there's no need to
create a transport object that's not used.
Bob Halley [Tue, 10 Sep 2024 15:10:36 +0000 (08:10 -0700)]
The return type of Rdata.to_wire() is Optional[bytes] not bytes. (#1129)
* The return type of Rdata.to_wire() is Optional[bytes] not bytes.
[#1128]
Moshe Kaplan [Sun, 8 Sep 2024 18:29:07 +0000 (14:29 -0400)]
Add example of DNS over TLS (#1126)
Bob Halley [Sun, 8 Sep 2024 18:13:20 +0000 (11:13 -0700)]
Ignore UP006 and UP0035 (Tuple->tuple and List->list) because we are stuck with them for a while.
Bob Halley [Sat, 7 Sep 2024 20:47:03 +0000 (13:47 -0700)]
refresh README notices
Bob Halley [Sat, 7 Sep 2024 20:01:09 +0000 (13:01 -0700)]
project update: remove 3.8, add 3.13
URenko [Wed, 28 Aug 2024 13:42:57 +0000 (13:42 +0000)]
Avoid instantiating Resolver when it is not necessary for DoH (#1123)
* Avoid instantiating Resolver when bootstrap_address is present for DoH
* Avoid instantiating Resolver when hostname is ip address for DoH
Brian Wellington [Fri, 23 Aug 2024 20:31:57 +0000 (13:31 -0700)]
Create EOFError exceptions with text EOF. (#1124)
Previously, EOFErrors were being created with no text, leading to bad
looking error messages.
Brian Wellington [Sun, 18 Aug 2024 13:54:16 +0000 (06:54 -0700)]
Refactor xfr. (#1122)
* Refactor xfr.
Internally refactors the zone transfer code to separate the message
processing from the socket management, allowing the (internal) callers
to pass a socket in. This should allow a future interface that accepts
a socket, which would mean that xfr over DoT would just work, and xfr
over DoQ would be closer to working.
Adds some necessary functionality to the asyncbackend Socket class to
allow the async zone transfer code to be more similar to the sync code
(specifically, adds a type field to Socket, and updates the trio backend
to connect UDP sockets when requested).
In asyncquery.py, reorder the inbound_xfr() and quic() methods for
consistency.
* Run black.
* Fix typing.
Bob Halley [Tue, 6 Aug 2024 21:47:21 +0000 (14:47 -0700)]
Allow Message.from_text() to parse a TSIG but not validate it. (#1116)
[#1115]
Bob Halley [Tue, 6 Aug 2024 21:46:49 +0000 (14:46 -0700)]
Do not allow an empty list in TXT record wire format or by invoking the constructor. (#1118)
[#1117]
Bob Halley [Thu, 1 Aug 2024 19:11:08 +0000 (12:11 -0700)]
add RFC 7871
Bob Halley [Thu, 1 Aug 2024 12:24:07 +0000 (05:24 -0700)]
ignore some uninteresting coverage gaps
Bob Halley [Thu, 1 Aug 2024 12:05:53 +0000 (05:05 -0700)]
disable codecov
Bob Halley [Wed, 31 Jul 2024 12:27:48 +0000 (05:27 -0700)]
Deal with windows registry delimiters more comprehensively. (#1113)
Windows has used both " " and "," as a list item delimiter, and
issues [#1010] and [#1112] have also show that both can happen,
possibly due to updates, e.g. "a, b". We now just convert "," to
" " and split().
Bob Halley [Sun, 28 Jul 2024 20:11:08 +0000 (13:11 -0700)]
Initial update of whatsnew for 2.7.0.
Bob Halley [Wed, 24 Jul 2024 22:00:03 +0000 (15:00 -0700)]
Use uv with hatch if available.
Bob Halley [Wed, 24 Jul 2024 18:29:07 +0000 (11:29 -0700)]
ReportChannel EDNS option support. (#1111)
Bob Halley [Wed, 24 Jul 2024 02:04:57 +0000 (19:04 -0700)]
run ruff in the CI
Bob Halley [Wed, 24 Jul 2024 02:00:31 +0000 (19:00 -0700)]
I do not want the SIM linting.
Bob Halley [Wed, 24 Jul 2024 01:55:56 +0000 (18:55 -0700)]
More mostly automated (but reviewed!) f-string conversions.
Bob Halley [Wed, 24 Jul 2024 01:45:32 +0000 (18:45 -0700)]
automated format to f-string conversion + black
Bob Halley [Wed, 24 Jul 2024 01:36:35 +0000 (18:36 -0700)]
cryptography>=43 is now required to use cryptography
Bob Halley [Wed, 24 Jul 2024 01:35:39 +0000 (18:35 -0700)]
Fix miscellaneous lint from increased ruff settings.
Jakob Schlyter [Wed, 24 Jul 2024 00:58:13 +0000 (02:58 +0200)]
Add support for deterministic signatures (#1104)
Add support for deterministic signatures and make them by default for ECDSA.
Jakob Schlyter [Tue, 23 Jul 2024 12:55:51 +0000 (14:55 +0200)]
ensure we have a zone origin (#1105)
Jakob Schlyter [Tue, 23 Jul 2024 12:46:18 +0000 (14:46 +0200)]
reformat examples (#1107)
Peter Thomassen [Sun, 21 Jul 2024 19:29:48 +0000 (21:29 +0200)]
Fix typo in message-edns.rst (#1102)
Bob Halley [Tue, 9 Jul 2024 14:11:42 +0000 (07:11 -0700)]
Fix the have_quic computation for test_doq
The have_quic determination broke when we switched to the
improved nanonameserver, and if aioquic was not installed then
the test_doq tests would fail instead of being skipped. We now
skip again in this situation.
Timothy Pillow [Tue, 9 Jul 2024 01:24:26 +0000 (03:24 +0200)]
fix doco typo in resolver-class.rst
Bob Halley [Wed, 3 Jul 2024 17:25:21 +0000 (10:25 -0700)]
Add WALLET rdatatype support. (#1098)
Bob Halley [Thu, 27 Jun 2024 20:29:31 +0000 (13:29 -0700)]
Add dns.rdata.load_all_types(). (#1095)
Brian Wellington [Wed, 5 Jun 2024 22:49:28 +0000 (15:49 -0700)]
More error checking in feature detection (#1088)
importlib.metadata.version() can return None in some cases, even though
it's not documented as doing so. Treat that as an error.
Bob Halley [Fri, 3 May 2024 19:30:53 +0000 (12:30 -0700)]
regenerate TLS test certs
Bob Halley [Fri, 19 Apr 2024 19:47:09 +0000 (12:47 -0700)]
loosen sphinx requirement
dependabot[bot] [Thu, 18 Apr 2024 17:17:38 +0000 (10:17 -0700)]
Bump sphinx from 7.3.5 to 7.3.6 (#1079)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.3.5 to 7.3.6.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.3.5...v7.3.6)
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Wed, 17 Apr 2024 20:58:49 +0000 (13:58 -0700)]
Bump sphinx from 7.2.6 to 7.3.5 (#1078)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.2.6 to 7.3.5.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.2.6...v7.3.5)
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bob Halley [Wed, 17 Apr 2024 13:17:29 +0000 (06:17 -0700)]
Set the minimum version of idna to 3.7.
Earlier versions have a potential DoS issue.
Bob Halley [Sat, 13 Apr 2024 17:33:03 +0000 (10:33 -0700)]
do not use : in cookie EDNS text output
Bob Halley [Sat, 13 Apr 2024 16:29:30 +0000 (09:29 -0700)]
add sphinx-rtd-theme to dev dependencies
Bob Halley [Sat, 13 Apr 2024 16:26:31 +0000 (09:26 -0700)]
Add EDNS Cookie option.
Brian Wellington [Fri, 29 Mar 2024 21:58:50 +0000 (14:58 -0700)]
Adds support for the SVCB/HTTPS ohttp parameter. (#1072)
Bob Halley [Wed, 27 Mar 2024 02:25:14 +0000 (19:25 -0700)]
Make 3.8 happy by removing newer type constructs in tests/doq.py.
Bob Halley [Wed, 27 Mar 2024 02:08:42 +0000 (19:08 -0700)]
Overhaul nanonameserver, adding DoT, DoH, DoH3, and DoQ support.
Co-authored-by: bwelling@xbill.org
Bob Halley [Mon, 25 Mar 2024 19:44:36 +0000 (12:44 -0700)]
Properly fix asyncio QUIC shutdown races [#1069].
There were two basic issues:
1) We did not wake up the sender thread to do work in some cases, and could
sleep for a long time.
2) asyncio.wait_for() does not instantly run the function, it just schedules
it, and our guards against lost wakeups were thus in the wrong place.
Bob Halley [Sat, 23 Mar 2024 12:42:20 +0000 (05:42 -0700)]
Fix more races around long waits.
Brian Wellington [Thu, 21 Mar 2024 12:20:46 +0000 (05:20 -0700)]
Replace h3 parameter with http_version. (#1068)
This allows more flexibility; clients can specify which http version
they want, or use the default.
Brian Wellington [Wed, 20 Mar 2024 19:25:13 +0000 (12:25 -0700)]
Fix DoH3 queries sent to a literal address. (#1067)
* Fix DoH3 queries sent to a literal address.
* Add test for async.
Bob Halley [Tue, 12 Mar 2024 19:51:28 +0000 (12:51 -0700)]
Require aioquic>=1.0.0 [#1032].
Bob Halley [Tue, 12 Mar 2024 13:27:35 +0000 (06:27 -0700)]
We were not calling check_delete_rdataset() in one delete path.
This commit adds comprehensive testing of checks, and also
plugs a few other coverage gaps.
Bob Halley [Mon, 11 Mar 2024 15:32:12 +0000 (08:32 -0700)]
Add a simple tsig example.
Bob Halley [Thu, 7 Mar 2024 13:15:34 +0000 (05:15 -0800)]
Close QUIC sync and trio sockets when done.
Bob Halley [Thu, 7 Mar 2024 13:15:00 +0000 (05:15 -0800)]
black lint
Brian Wellington [Tue, 5 Mar 2024 22:45:59 +0000 (14:45 -0800)]
Add support for saving quic tokens. (#1065)
This caches tokens in the manager, so that they can be used for address
validation in future connections.
Bob Halley [Tue, 5 Mar 2024 13:58:28 +0000 (05:58 -0800)]
Set license to a TOML table to avoid PEP 639 metadata for now.
Bob Halley [Mon, 4 Mar 2024 21:54:06 +0000 (13:54 -0800)]
Update Set docstring [#1063].
Bob Halley [Fri, 1 Mar 2024 13:32:13 +0000 (05:32 -0800)]
more coverage lint
Bob Halley [Fri, 1 Mar 2024 13:03:11 +0000 (05:03 -0800)]
Bump timeout on UDP with fallback.
Bob Halley [Fri, 1 Mar 2024 12:51:43 +0000 (04:51 -0800)]
Bump timeout on UDP with fallback.
Bob Halley [Fri, 1 Mar 2024 12:46:27 +0000 (04:46 -0800)]
Update ruff invocation for ruff 0.3.0.
Bob Halley [Thu, 29 Feb 2024 23:31:28 +0000 (15:31 -0800)]
Fix CI badge.
Bob Halley [Thu, 29 Feb 2024 23:28:49 +0000 (15:28 -0800)]
black lint
Bob Halley [Thu, 29 Feb 2024 23:27:58 +0000 (15:27 -0800)]
Fix some pylint lint for xfr refactor.
Brian Wellington [Thu, 29 Feb 2024 23:19:58 +0000 (15:19 -0800)]
Implement xfr() in terms of inbound_xfr(). (#1062)
This moves the implementation of inbound_xfr() to an internal generator
function, and implements both inbound_xfr() and xfr() using it.
Bob Halley [Sat, 24 Feb 2024 13:33:57 +0000 (05:33 -0800)]
DNS-over-HTTP3 (#1048)
* Implement DNS-over-HTTP3 using aioquic directly.
* Add h3 support for DoHNameserver.
Bob Halley [Fri, 23 Feb 2024 02:33:00 +0000 (18:33 -0800)]
Add RESINFO type.
Thomas Steen Rasmussen [Wed, 21 Feb 2024 13:30:03 +0000 (14:30 +0100)]
add an overridable socket_factory to dns.quic._sync for #1059 (#1060)
Bob Halley [Tue, 20 Feb 2024 22:01:51 +0000 (14:01 -0800)]
Message from_wire() now stores the original wire format, (#1057)
and to_wire() records its rendered output (minus any length prefix).
Bob Halley [Tue, 20 Feb 2024 22:01:39 +0000 (14:01 -0800)]
Add EDE retrieval helper [#969] and a get_options() helper. (#1056)
Bob Halley [Sun, 18 Feb 2024 18:42:51 +0000 (10:42 -0800)]
sync whatsnew with 2.6.1 release
Bob Halley [Sun, 18 Feb 2024 18:27:43 +0000 (10:27 -0800)]
The Tudoor fix should not eat valid Truncated exceptions [#1053] (#1054)
* The Tudoor fix should not eat valid Truncated exceptions [##1053]
* Make logic more readable
Bob Halley [Sat, 17 Feb 2024 14:57:40 +0000 (06:57 -0800)]
update for branch renaming
Bob Halley [Fri, 16 Feb 2024 16:46:24 +0000 (08:46 -0800)]
Further improve CVE fix coverage to 100% for sync and async.
Bob Halley [Fri, 16 Feb 2024 15:14:49 +0000 (07:14 -0800)]
test IgnoreErrors
Bob Halley [Fri, 16 Feb 2024 13:47:35 +0000 (05:47 -0800)]
For the Tudoor fix, we also need the UDP nameserver to ignore_unexpected.