Closed akuntsch closed 3 years ago
Hey @akuntsch ,
thanks for sharing your changes.
I'm not opposed to it, but I would prefer to hide the switch if the dnspython dependency is not installed. A default of "true" - or even worse, explicit setting - might be misleading unless an error is thrown later on and a default of "false" breaks with the old behavior. If the switch is simply not there, no false assumptions can be made.
This shouldn't be more than a try catch with the imports around the add() call.
But I'm also open to better arguments. :smile:
Hey @oGGy990,
makes sense to me and I don't have a better proposition.
I've updated the commit.
Hey @akuntsch,
thanks for your continued work. :-)
It looks good to me this way.
Needed a quick fix to disable the CNAME lookup behaviour even if dnspython is installed (it's installed because another package on my system depends on it) and this is it.
Let me know if you would merge this, then I will edit the README etc. as well.