Follow CNAMES when looking up key records when using DNS (pydns)

(LP: #1856421)
This commit is contained in:
Scott Kitterman
2019-12-15 00:42:31 -05:00
parent da3f98e6a1
commit 6c5f701131
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -1,3 +1,7 @@
Version 1.0.1
- Follow CNAMES when looking up key records when using DNS (pydns)
(LP: #1856421)
2019-12-09 Version 1.0.0
- Add support for RFC 8460 tlsrpt DKIM signature processing (LP: #1847020)
- Add async support with aiodns for DKIM verification (ARC not supported)
+4 -1
View File
@@ -44,7 +44,10 @@ def get_txt_pydns(name, timeout=5):
response = DNS.DnsRequest(name, qtype='txt', timeout=timeout).req()
if not response.answers:
return None
return b''.join(response.answers[0]['data'])
for answer in response.answers:
if answer['typename'].lower() == 'txt':
return b''.join(answer['data'])
return None
# No longer used since it doesn't support timeout