Skip to content

Commit

Permalink
re-order the DNS servers again to put Cloudflare on top
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmcdonald committed Dec 18, 2024
1 parent 85a0c78 commit 83ee534
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions native/ECH_DOH_108.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
2 files changed, 55 insertions(+), 1 deletion(-)

diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc
index 6db7ba3482d4d..db916fe2ee341 100644
index 080cd057d8ed6..79aa2092acc0d 100644
--- a/components/cronet/url_request_context_config.cc
+++ b/components/cronet/url_request_context_config.cc
@@ -29,6 +29,7 @@
Expand All @@ -14,7 +14,7 @@ index 6db7ba3482d4d..db916fe2ee341 100644
#include "net/http/http_network_session.h"
#include "net/http/http_server_properties.h"
#include "net/log/net_log.h"
@@ -886,6 +887,59 @@ void URLRequestContextConfig::ConfigureURLRequestContextBuilder(
@@ -928,6 +929,59 @@ void URLRequestContextConfig::ConfigureURLRequestContextBuilder(
SetContextBuilderExperimentalOptions(context_builder, &session_params,
quic_context->params(), bound_network);

Expand All @@ -30,11 +30,18 @@ index 6db7ba3482d4d..db916fe2ee341 100644
+ overrides.dns_over_https_config = net::DnsOverHttpsConfig::FromString(R"(
+ {
+ "servers": [{
+ "template": "https://doh.dns.sb/dns-query",
+ "template": "https://chrome.cloudflare-dns.com/dns-query",
+ "endpoints": [{
+ "ips": ["45.11.45.11"]
+ "ips": ["1.1.1.1", "2606:4700:4700::1111"]
+ }, {
+ "ips": ["185.222.222.222"]
+ "ips": ["1.0.0.1", "2606:4700:4700::1001"]
+ }]
+ },{
+ "template": "https://chromium.dns.nextdns.io",
+ "endpoints": [{
+ "ips": ["209.209.57.165", "2001:19f0:ac01:170:5400:2ff:fec8:72c8"]
+ },{
+ "ips": ["104.238.181.28", "2a0e:6901:410:25:5054:ff:fe1c:7c81"]
+ }]
+ },{
+ "template": "https://dns.quad9.net/dns-query",
Expand All @@ -44,18 +51,11 @@ index 6db7ba3482d4d..db916fe2ee341 100644
+ "ips": ["149.112.112.112", "2620:fe::9"]
+ }]
+ },{
+ "template": "https://chrome.cloudflare-dns.com/dns-query",
+ "template": "https://doh.dns.sb/dns-query",
+ "endpoints": [{
+ "ips": ["1.1.1.1", "2606:4700:4700::1111"]
+ "ips": ["45.11.45.11"]
+ }, {
+ "ips": ["1.0.0.1", "2606:4700:4700::1001"]
+ }]
+ },{
+ "template": "https://chromium.dns.nextdns.io",
+ "endpoints": [{
+ "ips": ["209.209.57.165", "2001:19f0:ac01:170:5400:2ff:fec8:72c8"]
+ },{
+ "ips": ["104.238.181.28", "2a0e:6901:410:25:5054:ff:fe1c:7c81"]
+ "ips": ["185.222.222.222"]
+ }]
+ }]
+ }
Expand Down

0 comments on commit 83ee534

Please sign in to comment.