Update dnsplug for DNS Python (dns) 2.0 compatibility (LP: #1888583)
This commit is contained in:
@@ -5,6 +5,7 @@ Version 1.1
|
|||||||
verification of multiple signatures in a single message
|
verification of multiple signatures in a single message
|
||||||
- Correct dkim.verify processing to avoid errors when verifying messages
|
- Correct dkim.verify processing to avoid errors when verifying messages
|
||||||
with no DKIM signatures
|
with no DKIM signatures
|
||||||
|
- Update dnsplug for DNS Python (dns) 2.0 compatibility (LP: #1888583)
|
||||||
|
|
||||||
2019-12-31 Version 1.0.2
|
2019-12-31 Version 1.0.2
|
||||||
- dknewkey: On posix operating systems set file permissions to 600 for
|
- dknewkey: On posix operating systems set file permissions to 600 for
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ def get_txt_dnspython(name, timeout=5):
|
|||||||
a = dns.resolver.query(name, dns.rdatatype.TXT,raise_on_no_answer=False, lifetime=timeout)
|
a = dns.resolver.query(name, dns.rdatatype.TXT,raise_on_no_answer=False, lifetime=timeout)
|
||||||
for r in a.response.answer:
|
for r in a.response.answer:
|
||||||
if r.rdtype == dns.rdatatype.TXT:
|
if r.rdtype == dns.rdatatype.TXT:
|
||||||
return b"".join(r.items[0].strings)
|
return b"".join(list(r.items)[0].strings)
|
||||||
except dns.resolver.NXDOMAIN: pass
|
except dns.resolver.NXDOMAIN: pass
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user