-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for DNS over TLS #392
Conversation
I didn't do a thorough review, but the changes seem to work as expected. I wonder what's would be a proper way of integrating these changes with |
Not my call, but I think that integrating into dns.resolver.Resolver is a different issue than adding the protocol support, unless there's something needed in the |
There is one thing I found that needs to be considered. The problem is that The solution would be to create |
I believe that replacing the import with something like this would be a lot simpler than adding a new module, if this is a real issue.
|
@bwelling Yes, this is a better version. In And yes, I think that forcing SSL could be an issue. SSL can not be available in Python, especially if you are building Python from source or using different and more limited runtime environment (maybe some microcontrollers, WebAssembly, some operating systems...). |
Looking forward to this feature getting merged (as we're building Icinga 2 tests on top of dnspython for DNS checks and a customer has just deployed DoT and DoH). Is there any indication of when this might be available in master? |
@rthalley Can you also merge my PR for DNS over HTTPS? |
Also, forcing to use |
I was committing the ssl fix already :) |
@rthalley - Thank you for such prompt action on this! |
Add support for DNS over TLS
This adds a dns.query.tls() method, which sends DoT queries.
This is similar to tcp(), but adds
ssl_context
andserver_hostname
parameters.