Closed hrkokw closed 2 years ago
You are calling the DNSLookup api to allow your app to work with any of several libraries (like pyspf does)? In that case, maybe I should split off "anydns" to provide just that unified/simplified API, and require that in pyspf.
Ah, no, I've just found this issue when debugging spf-engine, which doesn't work correctly in dnspython-enabled environment because of the way it calls DNSLookup:
rDNSResults = spf.DNSLookup (_get_rdns_lookup(ip), 'ptr', timeout=configData.get('Whitelist_Lookup_Time'))
# => empty, always
I wondered to which report this issue but finally I came here.
Thanks.
Hi,
When
DNSLookup_dnspython()
is called withqtype
option including lowercase letter, empty list is always returned as if there's no record, regardless of the actual server response.dnspython
accepts both upper/lowercaserdtype
and internally normalizes to uppercase. I suppose lettingDNSLookup_dnspython()
behave alike would be the best fix.This one-line patch works well in my environment:
Thanks.