Open
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
- cargo fmt - change shadowquic to fixed version
Member
|
Like I said if you want to do this you need to handle DDNS update properly |
Member
Author
|
My option, anyway, we didn't handle DDNS before. What I do didn't affect DDNS |
Member
|
No it does. You are caching the pre resolved result for ever. When the proxy DNS changes, they'll fail. |
Member
Author
I didn't cache more than baseline. DNS cache obey DNS TTL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 This is a ...
🔗 Related issue link
N/A
💡 Background and solution
Problem:
When proxy servers use domain names (e.g.,
proxy.example.com), they need to be resolved through DNS. Using regular nameservers may result in:Solution:
Implement
proxy-nameserverconfiguration following clash-meta's approach. This feature provides dedicated DNS servers specifically for resolving proxy server domain names, ensuring reliable and secure proxy connections.Implementation:
proxy-nameserverfield to DNS configurationproxy-nameserveris configuredproxy-nameserver, regular queries to normal nameserversSample Configuration:
📝 Changelog
Features:
proxy-nameserverDNS configuration option for resolving proxy server domainsChanges:
proxy-nameserverfield (optional)default-nameserverFiles Changed:
clash-lib/src/config/def.rs- Add proxy_nameserver fieldclash-lib/src/app/dns/config.rs- Parse proxy-nameserver configclash-lib/src/app/dns/resolver/enhanced.rs- Implement proxy domain resolution logicclash-lib/src/app/dns/resolver/mod.rs- Update resolver initializationclash-lib/src/app/outbound/manager.rs- Add proxy domain extractionclash-lib/src/lib.rs- Integrate proxy domains into DNS resolverclash-lib/src/proxy/utils/test_utils/docker_utils/config_helper.rs- Update test helper☑️ Self-Check before Merge