Closed akhepcat closed 3 years ago
Pushed commit 4e82c5aaf3b044f7280ace98edb719f62819db2b with your suggested fix. We do not have a good way to handle test cases using the actual dnspython/py(3)dns. That would require some kind of stub DNS server with the test DNS database.
under python3, with systems having both dnspython and python3 dns libraries installed, the SPF code fails due to how the resolver dependencies are walked.
The specific bug raised is that the snd.resolver.resolve(name,qtype,lifetime) args are incompatible with python3-dns, and cause pyspf to crash.
Something like this (as seen online elsewhere) seems to resolve the issue:
(this is working on my local system, though i have some other local patches which may or may not intertwine with this, but not listed here)