]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
3 months agoBump actions/download-artifact from 4 to 5 (#1220)
dependabot[bot] [Thu, 4 Sep 2025 18:55:03 +0000 (11:55 -0700)] 
Bump actions/download-artifact from 4 to 5 (#1220)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  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>
3 months agoonly publish on manual dispatch
Bob Halley [Thu, 4 Sep 2025 18:54:28 +0000 (11:54 -0700)] 
only publish on manual dispatch

3 months agoworking!
Bob Halley [Wed, 3 Sep 2025 19:56:53 +0000 (12:56 -0700)] 
working!

3 months agobrain fading
Bob Halley [Wed, 3 Sep 2025 19:55:10 +0000 (12:55 -0700)] 
brain fading

3 months agostill trying
Bob Halley [Wed, 3 Sep 2025 19:53:23 +0000 (12:53 -0700)] 
still trying

3 months agofix project rename and try again
Bob Halley [Wed, 3 Sep 2025 19:51:27 +0000 (12:51 -0700)] 
fix project rename and try again

3 months agoone more!
Bob Halley [Wed, 3 Sep 2025 19:42:12 +0000 (12:42 -0700)] 
one more!

3 months agolast try
Bob Halley [Wed, 3 Sep 2025 19:41:04 +0000 (12:41 -0700)] 
last try

3 months agostill trying
Bob Halley [Wed, 3 Sep 2025 19:26:36 +0000 (12:26 -0700)] 
still trying

3 months agotry again with python again
Bob Halley [Wed, 3 Sep 2025 18:54:59 +0000 (11:54 -0700)] 
try again with python again

3 months agotry again with python
Bob Halley [Wed, 3 Sep 2025 18:53:50 +0000 (11:53 -0700)] 
try again with python

3 months agotry again again
Bob Halley [Wed, 3 Sep 2025 18:39:16 +0000 (11:39 -0700)] 
try again again

3 months agotry again
Bob Halley [Wed, 3 Sep 2025 18:32:35 +0000 (11:32 -0700)] 
try again

3 months agofun with quoting
Bob Halley [Wed, 3 Sep 2025 18:25:51 +0000 (11:25 -0700)] 
fun with quoting

3 months agodash in names is bad
Bob Halley [Wed, 3 Sep 2025 18:21:43 +0000 (11:21 -0700)] 
dash in names is bad

3 months agotry renaming artifacts
Bob Halley [Wed, 3 Sep 2025 18:16:04 +0000 (11:16 -0700)] 
try renaming artifacts

3 months agomore run options
Bob Halley [Wed, 3 Sep 2025 18:04:08 +0000 (11:04 -0700)] 
more run options

3 months agoupdate test pypi url
Bob Halley [Wed, 3 Sep 2025 18:00:41 +0000 (11:00 -0700)] 
update test pypi url

3 months agoremove obsolete CI exclude
Bob Halley [Mon, 1 Sep 2025 23:40:34 +0000 (16:40 -0700)] 
remove obsolete CI exclude

3 months agomore release prep
Bob Halley [Mon, 1 Sep 2025 23:39:44 +0000 (16:39 -0700)] 
more release prep

3 months agobump version
Bob Halley [Mon, 1 Sep 2025 23:36:45 +0000 (16:36 -0700)] 
bump version

3 months ago2.8.0rc1 prep
Bob Halley [Mon, 1 Sep 2025 23:33:12 +0000 (16:33 -0700)] 
2.8.0rc1 prep

3 months agomore lint
Bob Halley [Mon, 1 Sep 2025 23:03:56 +0000 (16:03 -0700)] 
more lint

3 months agolint
Bob Halley [Mon, 1 Sep 2025 23:00:20 +0000 (16:00 -0700)] 
lint

3 months agoType syntax (#1218)
Bob Halley [Sat, 30 Aug 2025 19:30:41 +0000 (12:30 -0700)] 
Type syntax (#1218)

* use | type syntax when possible instead of Optional and Union

* fix other unused-import errors and re-enable F401

3 months agolint
Bob Halley [Sat, 23 Aug 2025 20:07:25 +0000 (13:07 -0700)] 
lint

3 months agofix the all entries
Bob Halley [Sat, 23 Aug 2025 19:57:30 +0000 (12:57 -0700)] 
fix the all entries

3 months agoadd missing DSYNC doco
Bob Halley [Sat, 23 Aug 2025 19:56:34 +0000 (12:56 -0700)] 
add missing DSYNC doco

3 months agoregenerate rdatatype doc
Bob Halley [Sat, 23 Aug 2025 19:48:45 +0000 (12:48 -0700)] 
regenerate rdatatype doc

3 months agoregenerate constants
Bob Halley [Sat, 23 Aug 2025 19:48:12 +0000 (12:48 -0700)] 
regenerate constants

3 months agosimplify complicate requirements when generating features
Bob Halley [Sat, 23 Aug 2025 19:46:35 +0000 (12:46 -0700)] 
simplify complicate requirements when generating features

3 months agofix repr issue with quotes within quotes
Bob Halley [Sat, 23 Aug 2025 19:43:20 +0000 (12:43 -0700)] 
fix repr issue with quotes within quotes

3 months agoregenerate features
Bob Halley [Sat, 23 Aug 2025 19:28:51 +0000 (12:28 -0700)] 
regenerate features

3 months agoremove python 3.9
Bob Halley [Sat, 23 Aug 2025 19:27:40 +0000 (12:27 -0700)] 
remove python 3.9

3 months agofreshen dependencies
Bob Halley [Sat, 23 Aug 2025 19:24:15 +0000 (12:24 -0700)] 
freshen dependencies

3 months agoadd btree & btreezone to __all__
Bob Halley [Sat, 23 Aug 2025 19:17:50 +0000 (12:17 -0700)] 
add btree & btreezone to __all__

3 months agoMake better APIs for creating sockets and TLS contexts (#1217)
Bob Halley [Mon, 18 Aug 2025 18:11:32 +0000 (11:11 -0700)] 
Make better APIs for creating sockets and TLS contexts (#1217)

* Make better APIs for creating sockets and TLS contexts for
code that wants to have persistent connections.  [#1176].

This code keeps the ability to use dnspython when the ssl module
doesn't work, but moves the helper code to another module to declutter
and make testing and type checking easier.

We still have to make some type checking compromises, but we are
making fewer than before.

4 months agoBump actions/checkout from 4 to 5 (#1216)
dependabot[bot] [Tue, 12 Aug 2025 13:54:18 +0000 (06:54 -0700)] 
Bump actions/checkout from 4 to 5 (#1216)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  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>
4 months agoBtree Zones (#1215)
Bob Halley [Sun, 10 Aug 2025 21:16:34 +0000 (14:16 -0700)] 
Btree Zones (#1215)

* Add BTree zone

4 months agoblack formatting; fix IPv6 extraction; fix infinite loop if an interface is non-opera...
Bob Halley [Sat, 26 Jul 2025 19:57:26 +0000 (12:57 -0700)] 
black formatting; fix IPv6 extraction; fix infinite loop if an interface is non-operational

4 months agolint
Bob Halley [Sat, 26 Jul 2025 15:51:20 +0000 (08:51 -0700)] 
lint

4 months agoSpecify the utf-8 encoding when opening files [#1188].
Bob Halley [Sat, 26 Jul 2025 15:36:29 +0000 (08:36 -0700)] 
Specify the utf-8 encoding when opening files [#1188].

4 months agoFix signing initially empty zone. (#1213)
Brian Wellington [Sat, 26 Jul 2025 15:13:41 +0000 (08:13 -0700)] 
Fix signing initially empty zone. (#1213)

dns.dnssec.sign_zone() fails if the SOA is added in the same transaction
that signs the zone, because it's not using the active transaction when
looking for the SOA. (#1210)

4 months agoUse Windows API to get dns nameservers (#1196)
Steven Silvester [Sat, 26 Jul 2025 15:10:06 +0000 (10:10 -0500)] 
Use Windows API to get dns nameservers (#1196)

Add an option to use the Windows API to get dns nameservers for better accuracy.

4 months agoFix broken test.
Brian Wellington [Mon, 21 Jul 2025 20:33:05 +0000 (13:33 -0700)] 
Fix broken test.

With the change in #1209, an empty tuple is no longer invalid when
specifying resolvers.  It was failing before because it was a tuple, and
tuples are now valid (and there are no checks for empty sequences).

4 months agoFix: Allow tuple in nameservers type check (#1209)
Oleksiy ("Alex") SEMENYAKA [Mon, 21 Jul 2025 20:32:54 +0000 (23:32 +0300)] 
Fix: Allow tuple in nameservers type check (#1209)

* Fix: Allow tuple in nameservers type check

* Update resolver.py

Add missing space.

* Update documentation.

---------

Co-authored-by: Alex Semenyaka <alex.semenyaka@gmail.com>
Co-authored-by: Brian Wellington <bwelling@xbill.org>
5 months agoMore TSIG fixes. (#1207)
Brian Wellington [Thu, 10 Jul 2025 20:55:55 +0000 (13:55 -0700)] 
More TSIG fixes. (#1207)

* More TSIG fixes.

This attempts to fix the bug that when a message containing a TSIG
record is parsed from wire format, attempting to render it back to wire
format will either regenerate the TSIG (if the TSIG was verified) or
throw an exception (if the TSIG was not verified).  In either case,
the rendered message should contain the TSIG record that was parsed.

* Fix setting tsig_ctx.

5 months agomessage to_text() did not print a tsig when there was one
Bob Halley [Fri, 4 Jul 2025 19:35:30 +0000 (12:35 -0700)] 
message to_text() did not print a tsig when there was one

5 months agoTSIG fix for make_response() (#1206)
Brian Wellington [Fri, 4 Jul 2025 19:32:08 +0000 (12:32 -0700)] 
TSIG fix for make_response() (#1206)

If a query contained a TSIG record that was unverified, attempting to
make a response to that query would throw an exception.

This should fix https://github.com/rthalley/dnspython/issues/1205.

5 months agoadd python 3.14-dev to CI
Bob Halley [Mon, 16 Jun 2025 13:06:22 +0000 (06:06 -0700)] 
add python 3.14-dev to CI

5 months agoBuild with Python 3.13 (#1203)
Jakob Schlyter [Mon, 16 Jun 2025 12:59:21 +0000 (14:59 +0200)] 
Build with Python 3.13 (#1203)

6 months agoAdd RFC 2136 to RFC reference [#1201]
Bob Halley [Sun, 8 Jun 2025 18:34:44 +0000 (11:34 -0700)] 
Add RFC 2136 to RFC reference [#1201]

6 months agoImprove EDECode description.
Brian Wellington [Fri, 23 May 2025 19:53:03 +0000 (12:53 -0700)] 
Improve EDECode description.

6 months agoFix missing references [#1193]
Bob Halley [Sat, 17 May 2025 14:42:34 +0000 (07:42 -0700)] 
Fix missing references [#1193]

7 months agoUpdate wmi extra to only install on Windows (#1192)
Jason R. Coombs [Wed, 23 Apr 2025 13:57:54 +0000 (09:57 -0400)] 
Update wmi extra to only install on Windows (#1192)

Since installing `dnspython[wmi]` is the recommended way to avoid querying dns servers on inactive interfaces (#1191), but WMI is only meaningful on Windows, perhaps the extra should only be installed on Windows.

8 months agoFix want_dnssec semantics.
Brian Wellington [Thu, 10 Apr 2025 22:21:11 +0000 (15:21 -0700)] 
Fix want_dnssec semantics.

Calling dns.message.make_query() with ednsflags including dns.flags.DO
didn't work properly.  The code would call Message.use_edns(), which
would do the right thing, and then call Message.want_dnssec(false)
because want_dnssec defaults False, which would overwrite the flags with
the wrong value.

This slightly changes the semantics, to make want_dnssec only have an
effect if it's True.  That's already what the documentation says.

8 months agofix type issue with to_generic()
Bob Halley [Mon, 7 Apr 2025 14:57:27 +0000 (07:57 -0700)] 
fix type issue with to_generic()

8 months agoAdd type hints for `Rdata` and `GenericRdata` constructors (#1190)
Jeremy Lainé [Mon, 7 Apr 2025 14:55:15 +0000 (16:55 +0200)] 
Add type hints for `Rdata` and `GenericRdata` constructors (#1190)

8 months agofix type error in _http3 verify parameter
Bob Halley [Sun, 30 Mar 2025 19:35:05 +0000 (12:35 -0700)] 
fix type error in _http3 verify parameter

8 months agolint for DSYNC
Bob Halley [Sun, 30 Mar 2025 19:30:25 +0000 (12:30 -0700)] 
lint for DSYNC

8 months agoallow ssl.SSLContext type in the verify= argument of dns.query.https() (#1173)
Thomas Steen Rasmussen [Sun, 30 Mar 2025 19:26:32 +0000 (21:26 +0200)] 
allow ssl.SSLContext type in the verify= argument of dns.query.https() (#1173)

allow ssl.SSLContext type in the verify= argument of dns.query.https() and dns.asyncquery.https()

8 months agoadd comment that running xfr example does not work for access control reasons
Bob Halley [Sun, 30 Mar 2025 19:24:37 +0000 (12:24 -0700)] 
add comment that running xfr example does not work for access control reasons

8 months agodocs: update zone transfer example to use inbound_xfr() (#1189)
Patrick Evans [Sun, 30 Mar 2025 19:22:59 +0000 (19:22 +0000)] 
docs: update zone transfer example to use inbound_xfr() (#1189)

8 months agoFix a DSYNC type issue, harmonize its scheme type, and increase coverage.
Bob Halley [Sun, 30 Mar 2025 19:09:36 +0000 (12:09 -0700)] 
Fix a DSYNC type issue, harmonize its scheme type, and increase coverage.

8 months agoAdd DSYNC rdatatype support (#1185)
Peter Thomassen [Sun, 30 Mar 2025 18:45:58 +0000 (20:45 +0200)] 
Add DSYNC rdatatype support (#1185)

Add DSYNC rdatatype support.

8 months agodocs: fix enum module name for udp_mode (#1187)
Patrick Evans [Wed, 26 Mar 2025 13:23:18 +0000 (13:23 +0000)] 
docs: fix enum module name for udp_mode (#1187)

8 months agofix issues found with latest version of pyright
Bob Halley [Wed, 26 Mar 2025 13:22:28 +0000 (06:22 -0700)] 
fix issues found with latest version of pyright

8 months agoremove unused hostname parameter to _https helper, and fix default port in the helper
Bob Halley [Sat, 22 Mar 2025 15:22:24 +0000 (08:22 -0700)] 
remove unused hostname parameter to _https helper, and fix default port in the helper

8 months agoAdd support for persistent H3 connections. (#1184)
Brian Wellington [Thu, 20 Mar 2025 14:43:40 +0000 (07:43 -0700)] 
Add support for persistent H3 connections. (#1184)

* Add support for persistent H3 connections.

* Make mypy happy.

* Make pyright happy.

8 months agoAllow built-in `IPv{4,6}Address` objects when constructing A/AAAA rdata (#1183)
Štěpán Balážik [Mon, 17 Mar 2025 14:58:16 +0000 (15:58 +0100)] 
Allow built-in `IPv{4,6}Address` objects when constructing A/AAAA rdata (#1183)

* Allow built-in IPv{4,6}Address objects when constructing A/AAAA rdata

Also applies elsewhere where dns.rdata.Rdata._as_ipv{4,6}_address is
used.

* Typecheck `tok` argument in dns.rdata.from_text

This now returns a better error message. Previously:

`SyntaxError: 'foo' object has no attribute 'get'`

Now:

`ValueError: tok must be a string or a Tokenizer`

---------

Co-authored-by: Štěpán Balážik <stepan@isc.org>
10 months agomake the latest pyright happy
Bob Halley [Wed, 29 Jan 2025 19:46:34 +0000 (11:46 -0800)] 
make the latest pyright happy

10 months agoQUIC code should process verify correctly when given a directory (#1179)
Bob Halley [Wed, 29 Jan 2025 19:36:31 +0000 (11:36 -0800)] 
QUIC code should process verify correctly when given a directory (#1179)

path. [#1174]

10 months agoDo not leak fds when using a selector [#1177]. (#1178)
Bob Halley [Thu, 23 Jan 2025 20:07:10 +0000 (12:07 -0800)] 
Do not leak fds when using a selector [#1177]. (#1178)

10 months agowe do not need to install types for mypy anymore
Bob Halley [Sat, 18 Jan 2025 21:12:21 +0000 (13:12 -0800)] 
we do not need to install types for mypy anymore

12 months agoMove creating a socket for a DoH query into the address's try..except
Bob Halley [Sat, 14 Dec 2024 19:26:17 +0000 (11:26 -0800)] 
Move creating a socket for a DoH query into the address's try..except
block so if creating fails, e.g. due to no IPv6, we try other addressess
if we've got any.  [#1169]

12 months agoAdd RFC 3597.
Bob Halley [Wed, 4 Dec 2024 15:00:38 +0000 (07:00 -0800)] 
Add RFC 3597.

12 months agoReplace percent formatting with f-strings. (#1168)
Brian Wellington [Fri, 29 Nov 2024 20:28:00 +0000 (12:28 -0800)] 
Replace percent formatting with f-strings. (#1168)

* Replace percent formatting with f-strings.

* Fix pyright ignores.

12 months agoSupport registering new types with classes. (#1167)
Brian Wellington [Fri, 29 Nov 2024 20:23:24 +0000 (12:23 -0800)] 
Support registering new types with classes. (#1167)

* Support registering new types with classes.

Previously, dns.rdata.register_type() required passing a module which
contained the implementation of the new type, and it would extract the
class from the module.  This change allows passing the class directly.

12 months agodisable ruff UP031
Bob Halley [Wed, 27 Nov 2024 19:38:05 +0000 (11:38 -0800)] 
disable ruff UP031

12 months agoBump sphinx-rtd-theme from 3.0.1 to 3.0.2 (#1164)
dependabot[bot] [Sun, 17 Nov 2024 01:44:38 +0000 (17:44 -0800)] 
Bump sphinx-rtd-theme from 3.0.1 to 3.0.2 (#1164)

Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) from 3.0.1 to 3.0.2.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst)
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/3.0.1...3.0.2)

---
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>
12 months agoThe QUIC sync worker thread should not spew backtraces due to not catching exceptions.
Bob Halley [Sun, 17 Nov 2024 01:42:54 +0000 (17:42 -0800)] 
The QUIC sync worker thread should not spew backtraces due to not catching exceptions.

13 months agofix typed example
Bob Halley [Sat, 2 Nov 2024 15:53:59 +0000 (08:53 -0700)] 
fix typed example

13 months agodo not pyright win32util.py
Bob Halley [Fri, 18 Oct 2024 20:14:26 +0000 (13:14 -0700)] 
do not pyright win32util.py

13 months agopyright cannot figure out trio CancelScope
Bob Halley [Fri, 18 Oct 2024 20:11:16 +0000 (13:11 -0700)] 
pyright cannot figure out trio CancelScope

13 months agotry to add pyright to the CI
Bob Halley [Fri, 18 Oct 2024 20:03:22 +0000 (13:03 -0700)] 
try to add pyright to the CI

13 months agopyright linting for quic
Bob Halley [Fri, 18 Oct 2024 17:44:02 +0000 (10:44 -0700)] 
pyright linting for quic

13 months agoadd typed variant of MX example
Bob Halley [Fri, 18 Oct 2024 17:27:29 +0000 (10:27 -0700)] 
add typed variant of MX example

13 months agosimplify support Python version doco
Bob Halley [Fri, 18 Oct 2024 17:23:51 +0000 (10:23 -0700)] 
simplify support Python version doco

13 months agomore minor lint tweaks
Bob Halley [Fri, 18 Oct 2024 17:17:53 +0000 (10:17 -0700)] 
more minor lint tweaks

13 months agoMinor README updates (#1149)
Ryan Frantz [Fri, 18 Oct 2024 17:16:44 +0000 (13:16 -0400)] 
Minor README updates (#1149)

- Consistently formats the `dnspython` name and some terminal commands.
- Tightens up a few lines to adhere what I presume is the preferred
  80-character line limit.

13 months agoFix AXFR-style IXFR with multiple messages. (#1151)
Brian Wellington [Fri, 18 Oct 2024 16:36:02 +0000 (09:36 -0700)] 
Fix AXFR-style IXFR with multiple messages. (#1151)

The inbound xfr code is conflating the expected rdtype in responses with
the incremental/replacement response style.  This causes a problem when
an AXFR-style IXFR response spans multiple messages, as resetting the
style to AXFR (replacement) also changed the expected type in the
question section of future responses to AXFR.

This change separates out the style from the expected rdtype.

13 months agodocs: include `dns.resolver.LifetimeTimeout` exception (#1148)
Mike Fiedler [Wed, 16 Oct 2024 01:22:05 +0000 (21:22 -0400)] 
docs: include `dns.resolver.LifetimeTimeout` exception (#1148)

13 months agopyright lint for async backends
Bob Halley [Wed, 16 Oct 2024 01:14:45 +0000 (18:14 -0700)] 
pyright lint for async backends

13 months agopyright lint for dnssecalgs
Bob Halley [Wed, 16 Oct 2024 01:04:29 +0000 (18:04 -0700)] 
pyright lint for dnssecalgs

13 months agopyright lint for rdtypes
Bob Halley [Wed, 16 Oct 2024 00:55:13 +0000 (17:55 -0700)] 
pyright lint for rdtypes

13 months agoPyright lint (#1147)
Bob Halley [Tue, 15 Oct 2024 19:53:10 +0000 (12:53 -0700)] 
Pyright lint (#1147)

Start of pyright linting (more to come in future work).

14 months agoremove broken codeql analysis until fixed
Bob Halley [Mon, 14 Oct 2024 14:02:09 +0000 (07:02 -0700)] 
remove broken codeql analysis until fixed

14 months agoremove debug print from retry_on_timeout
Bob Halley [Sat, 12 Oct 2024 16:48:37 +0000 (09:48 -0700)] 
remove debug print from retry_on_timeout

14 months agoadd more wrapping accidentally omitted from the PR
Bob Halley [Sat, 12 Oct 2024 16:31:45 +0000 (09:31 -0700)] 
add more wrapping accidentally omitted from the PR

14 months agoRetry on test timeout (#1146)
Bob Halley [Sat, 12 Oct 2024 16:29:13 +0000 (09:29 -0700)] 
Retry on test timeout (#1146)

wrap all the tests that can time out