Open adolfogc opened 1 year ago
There's a bit of plumbing to allow a custom DNS resolver, but it's not all there, and would be a non-trivial amount of work.
What behavior did you desire, which is different from the existing behavior?
I know the DefaultHostResolver used to be very aggressive, repeatedly pinging for more IPs for several seconds after the initial lookup. But this very recently changed, and the aggressive pinging no longer happens for IoT addresses, see: https://github.com/awslabs/aws-c-io/pull/559, https://github.com/awslabs/aws-crt-python/pull/465
If you use the latest version of the IoT SDK https://github.com/aws/aws-iot-device-sdk-python-v2/releases/tag/v1.13.0 you should get the better behavior
Hi, thank you for your reply. I'm trying that version of the SDK now. For other stuff I want to try, I think is better to use something like dnscrypt-proxy.
Describe the issue
The documentation mentions
HostResolverBase
but doesn't describe its interface. Is it possible to provide our own resolver based on this class?One that uses DoH, as in the example below:
I don't use the AWS CRT directly, but by using the Mqtt connection builder with AWS IoT SDK V2.
Links
https://awslabs.github.io/aws-crt-python/api/io.html#awscrt.io.HostResolverBase