Remove dnspython deprecation warning#5117
Remove dnspython deprecation warning#5117tripleee wants to merge 2 commits intoCharcoal-SE:masterfrom
Conversation
Where previously we used dns.resolver.query(), switch to d.r.resolve() Complete compatibility would require d.r.resolve(search=True) but this works without it so far. Perhaps see also rthalley/dnspython#581
|
This has dependencies and interrelated issues. IIRC, the primary issue surrounding this was that the replacement for the deprecated function wasn't available in a dnspython version which is compatible with Python 3.5. So, fixing this issue requires:
|
Looks like dnsresolver class with the modifiable resolver class in here for configuration and use in the `!!/ip` call we used a while ago for DNS lookups of things (when we were debugging differing DNS records for domains) did not get the changes that #5117 was going to implement. So, implement.
I'm curious, but why would we need From the DNSPython configuration documents, this is what 'search' does:
We won't need Therefore, that function being added or not is irrelevant, I just tested the difference between |
Looks like dnsresolver class with the modifiable resolver class in here for configuration and use in the `!!/ip` call we used a while ago for DNS lookups of things (when we were debugging differing DNS records for domains) did not get the changes that Charcoal-SE#5117 was going to implement. So, implement.
Where previously we used dns.resolver.query(), switch to d.r.resolve()
Complete compatibility would require d.r.resolve(search=True) but this works without it so far.
Perhaps see also rthalley/dnspython#581