-
-
Notifications
You must be signed in to change notification settings - Fork 17
feat: adjust DNS resolvers #217
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5ef0295
chore: adjust preset dns providers
RKNF404 59e3423
Merge branch 'secureblue:live' into dns-providers
RKNF404 dc3dbe9
chore: adjust wording
RKNF404 9be5280
chore: auto upgrade DNS providers
RKNF404 bba7a37
chore: revert previous commit
RKNF404 dfcd72d
chore: add documentation links
RKNF404 bed2f31
chore: adjust wording
RKNF404 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,169 @@ | ||
| diff --git a/net/dns/public/doh_provider_entry.cc b/net/dns/public/doh_provider_entry.cc | ||
| index 910a0c91aa1fa..bfe959f1475f2 100644 | ||
| --- a/net/dns/public/doh_provider_entry.cc | ||
| +++ b/net/dns/public/doh_provider_entry.cc | ||
| @@ -77,7 +77,7 @@ const DohProviderEntry::List& DohProviderEntry::GetList() { | ||
| /*ui_name=*/"alekberg.net (NL)", | ||
| /*privacy_policy=*/"https://alekberg.net/privacy", | ||
| /*display_globally=*/false, | ||
| - /*display_countries=*/{"NL"}, LoggingLevel::kNormal}, | ||
| + /*display_countries=*/{}, LoggingLevel::kNormal}, | ||
| {"CleanBrowsingAdult", | ||
| MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderCleanBrowsingAdult, | ||
| base::FEATURE_ENABLED_BY_DEFAULT), | ||
| @@ -99,7 +99,7 @@ const DohProviderEntry::List& DohProviderEntry::GetList() { | ||
| "https://doh.cleanbrowsing.org/doh/family-filter{?dns}", | ||
| /*ui_name=*/"CleanBrowsing (Family Filter)", | ||
| /*privacy_policy=*/"https://cleanbrowsing.org/privacy", | ||
| - /*display_globally=*/true, | ||
| + /*display_globally=*/false, | ||
| /*display_countries=*/{}, | ||
| LoggingLevel::kNormal}, | ||
| {"CleanBrowsingSecure", | ||
| @@ -117,15 +117,107 @@ const DohProviderEntry::List& DohProviderEntry::GetList() { | ||
| MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderCloudflare, | ||
| base::FEATURE_ENABLED_BY_DEFAULT), | ||
| {"1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001"}, | ||
| - /*dns_over_tls_hostnames=*/ | ||
| - {"one.one.one.one", "1dot1dot1dot1.cloudflare-dns.com"}, | ||
| - "https://chrome.cloudflare-dns.com/dns-query", | ||
| + /*dns_over_tls_hostnames=*/{"one.one.one.one", "cloudflare-dns.com", | ||
| + "1dot1dot1dot1.cloudflare-dns.com"}, | ||
| + "https://cloudflare-dns.com/dns-query", | ||
| /*ui_name=*/"Cloudflare (1.1.1.1)", | ||
| "https://developers.cloudflare.com/1.1.1.1/privacy/" | ||
| /*privacy_policy=*/"public-dns-resolver/", | ||
| /*display_globally=*/true, | ||
| /*display_countries=*/{}, | ||
| LoggingLevel::kExtra}, | ||
| + // Source for Cloudflare IP addresses and hostnames/URLs: https://developers.cloudflare.com/1.1.1.1/infrastructure/network-operators/#available-endpoints | ||
| + {"CloudflareSecurity", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderCloudflareSecurity, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"1.1.1.2", "1.0.0.2", "2606:4700:4700::1112", "2606:4700:4700::1002"}, | ||
| + /*dns_over_tls_hostnames=*/{"security.cloudflare-dns.com"}, | ||
| + "https://security.cloudflare-dns.com/dns-query", | ||
| + /*ui_name=*/"Cloudflare (Malware Filter)", | ||
| + "https://developers.cloudflare.com/1.1.1.1/privacy/" | ||
| + /*privacy_policy=*/"public-dns-resolver/", | ||
| + /*display_globally=*/true, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| + {"CloudflareFamily", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderCloudflareFamily, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"1.1.1.3", "1.0.0.3", "2606:4700:4700::1113", "2606:4700:4700::1003"}, | ||
| + /*dns_over_tls_hostnames=*/{"family.cloudflare-dns.com"}, | ||
| + "https://family.cloudflare-dns.com/dns-query", | ||
| + /*ui_name=*/"Cloudflare (Family Filter)", | ||
| + "https://developers.cloudflare.com/1.1.1.1/privacy/" | ||
| + /*privacy_policy=*/"public-dns-resolver/", | ||
| + /*display_globally=*/true, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| + // Source for Control D IP addresses and hostnames/URLs: https://controld.com/free-dns | ||
| + {"ControlD", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderControlD, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"76.76.2.0", "76.76.10.0", "2606:1a40::", "2606:1a40:1::"}, | ||
| + /*dns_over_tls_hostnames=*/{"p0.freedns.controld.com"}, | ||
| + "https://freedns.controld.com/p0", | ||
| + /*ui_name=*/"", | ||
| + /*privacy_policy=*/"", | ||
| + /*display_globally=*/false, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| + {"ControlDMalware", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderControlDMalware, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"76.76.2.1", "76.76.10.1", "2606:1a40::1", "2606:1a40:1::1"}, | ||
| + /*dns_over_tls_hostnames=*/{"p1.freedns.controld.com"}, | ||
| + "https://freedns.controld.com/p1", | ||
| + /*ui_name=*/"Control D (Malware Filtering)", | ||
| + /*privacy_policy=*/"https://controld.com/privacy", | ||
| + /*display_globally=*/true, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| + {"ControlDStandard", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderControlDStandard, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"76.76.2.2", "76.76.10.2", "2606:1a40::2", "2606:1a40:1::2"}, | ||
| + /*dns_over_tls_hostnames=*/{"p2.freedns.controld.com"}, | ||
| + "https://freedns.controld.com/p2", | ||
| + /*ui_name=*/"Control D (Tracking & Malware Filtering)", | ||
| + /*privacy_policy=*/"https://controld.com/privacy", | ||
| + /*display_globally=*/true, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| + {"ControlDSocial", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderControlDSocial, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"76.76.2.3", "76.76.10.3", "2606:1a40::3", "2606:1a40:1::3"}, | ||
| + /*dns_over_tls_hostnames=*/{"p3.freedns.controld.com"}, | ||
| + "https://freedns.controld.com/p3", | ||
| + /*ui_name=*/"", | ||
| + /*privacy_policy=*/"", | ||
| + /*display_globally=*/false, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| + {"ControlDFamily", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderControlDFamily, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"76.76.2.4", "76.76.10.4", "2606:1a40::4", "2606:1a40:1::4"}, | ||
| + /*dns_over_tls_hostnames=*/{"family.freedns.controld.com"}, | ||
| + "https://freedns.controld.com/family", | ||
| + /*ui_name=*/"Control D (Tracking & Family Filtering)", | ||
| + /*privacy_policy=*/"https://controld.com/privacy", | ||
| + /*display_globally=*/true, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| + {"ControlDUncensored", | ||
| + MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderControlDUncensored, | ||
| + base::FEATURE_ENABLED_BY_DEFAULT), | ||
| + {"76.76.2.5", "76.76.10.5", "2606:1a40::5", "2606:1a40:1::5"}, | ||
| + /*dns_over_tls_hostnames=*/{"uncensored.freedns.controld.com"}, | ||
| + "https://freedns.controld.com/uncensored", | ||
| + /*ui_name=*/"", | ||
| + /*privacy_policy=*/"", | ||
| + /*display_globally=*/false, | ||
| + /*display_countries=*/{}, | ||
| + LoggingLevel::kExtra}, | ||
| {"Comcast", | ||
| MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderComcast, | ||
| base::FEATURE_ENABLED_BY_DEFAULT), | ||
| @@ -181,7 +273,7 @@ const DohProviderEntry::List& DohProviderEntry::GetList() { | ||
| /*ui_name=*/"Google (Public DNS)", | ||
| "https://developers.google.com/speed/public-dns/" | ||
| /*privacy_policy=*/"privacy", | ||
| - /*display_globally=*/true, | ||
| + /*display_globally=*/false, | ||
| /*display_countries=*/{}, | ||
| LoggingLevel::kExtra}, | ||
| {"GoogleDns64", | ||
| @@ -225,7 +317,7 @@ const DohProviderEntry::List& DohProviderEntry::GetList() { | ||
| /*dns_over_tls_hostnames=*/{}, "https://chromium.dns.nextdns.io", | ||
| /*ui_name=*/"NextDNS", | ||
| /*privacy_policy=*/"https://nextdns.io/privacy", | ||
| - /*display_globally=*/false, /*display_countries=*/{"US"}, | ||
| + /*display_globally=*/false, /*display_countries=*/{}, | ||
| LoggingLevel::kNormal}, | ||
| {"OpenDNS", | ||
| MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(DohProviderOpenDNS, | ||
| @@ -237,7 +329,7 @@ const DohProviderEntry::List& DohProviderEntry::GetList() { | ||
| /*ui_name=*/"OpenDNS", | ||
| "https://www.cisco.com/c/en/us/about/legal/" | ||
| /*privacy_policy=*/"privacy-full.html", | ||
| - /*display_globally=*/true, | ||
| + /*display_globally=*/false, | ||
| /*display_countries=*/{}, | ||
| LoggingLevel::kNormal}, | ||
| {"OpenDNSFamily", | ||
| @@ -282,7 +374,7 @@ const DohProviderEntry::List& DohProviderEntry::GetList() { | ||
| "https://dns.quad9.net/dns-query", | ||
| /*ui_name=*/"Quad9 (9.9.9.9)", | ||
| /*privacy_policy=*/"https://www.quad9.net/home/privacy/", | ||
| - /*display_globally=*/true, | ||
| + /*display_globally=*/false, | ||
| /*display_countries=*/{}, | ||
| LoggingLevel::kExtra}, | ||
| {"Quickline", | ||
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.
Uh oh!
There was an error while loading. Please reload this page.