Your message dated Thu, 10 Feb 2022 09:19:12 +0000
with message-id <e1ni5bc-0004or...@fasolo.debian.org>
and subject line Bug#1005248: fixed in dehydrated-hook-ddns-tsig 0.1.4-7
has caused the Debian Bug report #1005248,
regarding dehydrated-hook-ddns-tsig: Resolve DeprecationWarning for
dns.resolver.query()
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1005248: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005248
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dehydrated-hook-ddns-tsig
Version: 0.1.4-6
Severity: normal
Tags: patch upstream
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
when running dehydrated using this hook a deprecation warning appears:
```
/usr/share/dehydrated-hook-ddns-tsig/dehydrated-hook-ddns-tsig.py:157:
DeprecationWarning: please use dns.resolver.resolve() instead
for rdata in dns.resolver.query(fqdn, rdtype=dns.rdatatype.NS):
```
Applying the attached patched solved the problem.
--
Felix
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.15.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dehydrated-hook-ddns-tsig depends on:
ii dehydrated 0.7.0-3
ii python3 3.9.8-1
ii python3-dnspython 2.2.0-2
dehydrated-hook-ddns-tsig recommends no packages.
dehydrated-hook-ddns-tsig suggests no packages.
-- no debconf information
diff --git a/dehydrated-hook-ddns-tsig.py
b/usr/share/dehydrated-hook-ddns-tsig/dehydrated-hook-ddns-tsig.py
index 67dd76f..48579f3 100755
--- a/dehydrated-hook-ddns-tsig.py
+++ b/usr/share/dehydrated-hook-ddns-tsig/dehydrated-hook-ddns-tsig.py
@@ -154,15 +154,15 @@ Return a list of nameserver IPs (might be empty)
nameservers = []
try:
fqdn = '.'.join(name_list[i:])
- for rdata in dns.resolver.resolve(fqdn, rdtype=dns.rdatatype.NS):
+ for rdata in dns.resolver.query(fqdn, rdtype=dns.rdatatype.NS):
ns = rdata.target.to_unicode()
nsL = []
try:
- nsL.extend([_.to_text() for _ in dns.resolver.resolve(ns,
rdtype=dns.rdatatype.A)])
+ nsL.extend([_.to_text() for _ in dns.resolver.query(ns,
rdtype=dns.rdatatype.A)])
except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN) as e:
pass
try:
- nsL.extend([_.to_text() for _ in dns.resolver.resolve(ns,
rdtype=dns.rdatatype.AAAA)])
+ nsL.extend([_.to_text() for _ in dns.resolver.query(ns,
rdtype=dns.rdatatype.AAAA)])
except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN) as e:
pass
if nsL:
@@ -212,7 +212,7 @@ Return True if the record could be verified, false
otherwise.
answer = []
try:
answer = [_.to_text().strip('"'+"'")
- for _ in resolver.resolve(domain_name, rtype)]
+ for _ in resolver.query(domain_name, rtype)]
except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer) as e:
# probably not there yet...
logger.debug(
--- End Message ---
--- Begin Message ---
Source: dehydrated-hook-ddns-tsig
Source-Version: 0.1.4-7
Done: IOhannes m zmölnig (Debian/GNU) <umlae...@debian.org>
We believe that the bug you reported is fixed in the latest version of
dehydrated-hook-ddns-tsig, which is due to be installed in the Debian FTP
archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1005...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
IOhannes m zmölnig (Debian/GNU) <umlae...@debian.org> (supplier of updated
dehydrated-hook-ddns-tsig package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 10 Feb 2022 09:50:33 +0100
Source: dehydrated-hook-ddns-tsig
Architecture: source
Version: 0.1.4-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Let's Encrypt Team <team+letsencr...@tracker.debian.org>
Changed-By: IOhannes m zmölnig (Debian/GNU) <umlae...@debian.org>
Closes: 1005248
Changes:
dehydrated-hook-ddns-tsig (0.1.4-7) unstable; urgency=medium
.
* Add pyth to avoid deprecated dns.resolver.query()
Thanks to Felix <fe...@felix-zauberer.de> (Closes: #1005248)
Checksums-Sha1:
416bbe8227092a20b7a28870d83dfa59b5acc855 2269
dehydrated-hook-ddns-tsig_0.1.4-7.dsc
dd3196aa6f33590da34235ff7cb8625a2d50271d 4756
dehydrated-hook-ddns-tsig_0.1.4-7.debian.tar.xz
Checksums-Sha256:
b4a0374d5fe0793797c77232f69a32e4fe74b293835aa69307f4180dcc030011 2269
dehydrated-hook-ddns-tsig_0.1.4-7.dsc
e59a047321eb9e89a5618cb7b75b3e69912d093bff3a58ac35cc147efbfd1b48 4756
dehydrated-hook-ddns-tsig_0.1.4-7.debian.tar.xz
Files:
d89e200802a6f80352e14e74da2d3b33 2269 misc optional
dehydrated-hook-ddns-tsig_0.1.4-7.dsc
d7670649cfa2846f746051e2bde2a743 4756 misc optional
dehydrated-hook-ddns-tsig_0.1.4-7.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEdAXnRVdICXNIABVttlAZxH96NvgFAmIE0wUACgkQtlAZxH96
Nvji3w//St7KqwtgbyNrz1ZfLKdiiUfrmNf4axOP+Nz4SkD12DQUndPN6I9cO7gw
tmYk++Xg65UCP35LgE0LgYn2gwmB/y1fYYORhhqpEzYeCIe+eczTT4sklUsa7w5M
187HJMd3mLJUArkTTi5JN3piBcmvyDl87MtWfsFdB6tnwU5F7GU3+v24ZdsHA7va
WRh2Q3jTOcKVFJsAQguaXMvbl4GYbZw/O/YQIgMYDSEaTDcc14QTwOkaV+V2H6jB
RTuH/JvoWuyMWrNcNj7005eYQ/whJYkDsfIjwRFJoPySdJ0cKcOMoR/yTTzHtHss
soGosiMC230kJ+ri6pnHF5iCFGb2cmOPBanI5d5vFJpEaSlX6ZOzEubIOphWl2yz
2Aqy6uSfHt3th7RvdvJJf7U2+DTp1q33NhgfxlytrDGn04Pz1Z1bISrHk1Kmk8l0
+4RsjUcRoXZ2+8D2lqC0Sm8jBLyLHJfOuskji+HYML4YQhYXdvLWU1EoxgXe/hJF
ziE5erGMYbUWf94MoUvBSm4nO32sCDkNFQGb+4pV0abvmgpP2DN9vdYvaQ0C49Bl
1EYFQlfDmGD5Y2xBVHWqHhVK6D9vbhKI+XAE0foCSuZh5nPf/8vJ2cASHXHLJ4eo
oGdFyKjw+/sRC/VqV4w3uyjg2wj4030Yd3ciC2vQiMXR6MrKvHY=
=/Q6E
-----END PGP SIGNATURE-----
--- End Message ---