Custom DNS resolver usage + proxied DNS #1686
Unanswered
workspace8
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on discussions here, it looks like the ability to set a custom DNS resolver was implemented here: #1125
Looking at the docs.rs, I see the usage as: Pass an Arc wrapping a trait object implementing Resolve. Overrides for specific names passed to resolve and resolve_to_addrs will still be applied on top of this resolver.
But, as a beginner, I was wondering if you can provide an example implementation?
Additionally, I wasn't able to find out if I use proxies (with no custom DNS), if the DNS requests to go /etc/resolv.conf defined resolvers or the proxy's DNS.
If I use proxies, are the DNS requests going through the proxies first?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions