Skip to content

Fix DNS #7233

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

Merged
merged 2 commits into from
May 4, 2025
Merged

Fix DNS #7233

merged 2 commits into from
May 4, 2025

Conversation

DHR60
Copy link
Contributor

@DHR60 DHR60 commented May 3, 2025

修复 #7227 (comment) ,当 Outbound Freedom domainStrategy 为 UseIP 时,部分域名因为被 geosite:geolocation-!cngeosite:cn 同时包含,导致 freedom 直连到国外 IP。比如 dl.google.com 等 Google CN 域名。


修复后:

当 dns 查询域名在 geosite:cn 时,查询顺序为: 223.5.5.5 -> 1.1.1.1 -> 8.8.8.8 -> https://dns.google/dns-query

当 dns 查询域名不在 geosite:cn 时,查询顺序为:1.1.1.1 -> 8.8.8.8 -> https://dns.google/dns-query

当 dns 查询域名为 domain:gstatic.com 时,查询顺序为:1.1.1.1 ("skipFallback": true) -> 1.1.1.1 -> 8.8.8.8 -> https://dns.google/dns-query

1.1.1.1"skipFallback": true 是为了防止不在 geosite:cn 的域名多次查询到 1.1.1.1

@DHR60 DHR60 mentioned this pull request May 4, 2025
@2dust 2dust merged commit 8b4e2f8 into 2dust:master May 4, 2025
@DHR60 DHR60 deleted the fix_dns branch May 4, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants