From f7a484ca0313cbcbcb17918554c830b95dbe1a50 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 21 May 2024 11:07:09 +0300 Subject: [PATCH] {firefox,chromium}: use GET requests with DoH for caching and speed --- etc/firefox/policies/policies.json | 5 +++++ etc/opt/chromium/policies/managed/doh-adguard-family.json | 2 +- .../chromium/policies/managed/doh-adguard-unfiltered.json | 2 +- etc/opt/chromium/policies/managed/doh-adguard.json | 2 +- .../chromium/policies/managed/doh-cloudflare-security.json | 2 +- etc/opt/chromium/policies/managed/doh-dns0-kids.json | 2 +- etc/opt/chromium/policies/managed/doh-dns0-open.json | 2 +- etc/opt/chromium/policies/managed/doh-dns0.json | 2 +- etc/opt/chromium/policies/managed/doh-mullvad-base.json | 2 +- etc/opt/chromium/policies/managed/doh-private-ecs.json | 2 +- etc/opt/chromium/policies/managed/doh-quad9-ecs.json | 2 +- etc/opt/chromium/policies/managed/doh-quad9.json | 2 +- 12 files changed, 16 insertions(+), 11 deletions(-) diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index fb4cc641..11bade1c 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -558,6 +558,11 @@ "Type": "boolean", "Value": false }, + "network.trr.useGET": { + "Status": "locked", + "Type": "boolean", + "Value": true + }, "pdfjs.enableScripting": { "Comment": "I don't see a good reason for allowing scripts in pdf files in a web browser.", "Status": "locked", diff --git a/etc/opt/chromium/policies/managed/doh-adguard-family.json b/etc/opt/chromium/policies/managed/doh-adguard-family.json index 736a73f9..ee64cac5 100644 --- a/etc/opt/chromium/policies/managed/doh-adguard-family.json +++ b/etc/opt/chromium/policies/managed/doh-adguard-family.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://family.adguard-dns.com/dns-query" + "DnsOverHttpsTemplates": "https://family.adguard-dns.com/dns-query?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-adguard-unfiltered.json b/etc/opt/chromium/policies/managed/doh-adguard-unfiltered.json index 2c2e3c6a..d6fea187 100644 --- a/etc/opt/chromium/policies/managed/doh-adguard-unfiltered.json +++ b/etc/opt/chromium/policies/managed/doh-adguard-unfiltered.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://unfiltered.adguard-dns.com/dns-query" + "DnsOverHttpsTemplates": "https://unfiltered.adguard-dns.com/dns-query?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-adguard.json b/etc/opt/chromium/policies/managed/doh-adguard.json index 6a1cbff6..4dab20de 100644 --- a/etc/opt/chromium/policies/managed/doh-adguard.json +++ b/etc/opt/chromium/policies/managed/doh-adguard.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://dns.adguard-dns.com/dns-query" + "DnsOverHttpsTemplates": "https://dns.adguard-dns.com/dns-query?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-cloudflare-security.json b/etc/opt/chromium/policies/managed/doh-cloudflare-security.json index 46138d63..a241f88e 100644 --- a/etc/opt/chromium/policies/managed/doh-cloudflare-security.json +++ b/etc/opt/chromium/policies/managed/doh-cloudflare-security.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://security.cloudflare-dns.com/dns-query" + "DnsOverHttpsTemplates": "https://security.cloudflare-dns.com/dns-query?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-dns0-kids.json b/etc/opt/chromium/policies/managed/doh-dns0-kids.json index cc20b62b..9704d5a2 100644 --- a/etc/opt/chromium/policies/managed/doh-dns0-kids.json +++ b/etc/opt/chromium/policies/managed/doh-dns0-kids.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://kids.dns0.eu/" + "DnsOverHttpsTemplates": "https://kids.dns0.eu/?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-dns0-open.json b/etc/opt/chromium/policies/managed/doh-dns0-open.json index 8f21011a..e2b415e6 100644 --- a/etc/opt/chromium/policies/managed/doh-dns0-open.json +++ b/etc/opt/chromium/policies/managed/doh-dns0-open.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://open.dns0.eu/" + "DnsOverHttpsTemplates": "https://open.dns0.eu/?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-dns0.json b/etc/opt/chromium/policies/managed/doh-dns0.json index 001f1b21..c60eed31 100644 --- a/etc/opt/chromium/policies/managed/doh-dns0.json +++ b/etc/opt/chromium/policies/managed/doh-dns0.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://dns0.eu/" + "DnsOverHttpsTemplates": "https://dns0.eu/?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-mullvad-base.json b/etc/opt/chromium/policies/managed/doh-mullvad-base.json index 9cc913f8..1db20b39 100644 --- a/etc/opt/chromium/policies/managed/doh-mullvad-base.json +++ b/etc/opt/chromium/policies/managed/doh-mullvad-base.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://base.dns.mullvad.net/dns-query" + "DnsOverHttpsTemplates": "https://base.dns.mullvad.net/dns-query?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-private-ecs.json b/etc/opt/chromium/policies/managed/doh-private-ecs.json index 12630534..30a48b3f 100644 --- a/etc/opt/chromium/policies/managed/doh-private-ecs.json +++ b/etc/opt/chromium/policies/managed/doh-private-ecs.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://unfiltered.adguard-dns.com/dns-query https://open.dns0.eu/" + "DnsOverHttpsTemplates": "https://unfiltered.adguard-dns.com/dns-query?dns https://open.dns0.eu/?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-quad9-ecs.json b/etc/opt/chromium/policies/managed/doh-quad9-ecs.json index 731689ee..e257ed00 100644 --- a/etc/opt/chromium/policies/managed/doh-quad9-ecs.json +++ b/etc/opt/chromium/policies/managed/doh-quad9-ecs.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://dns11.quad9.net/dns-query https://dns11.quad9.net:5053/dns-query" + "DnsOverHttpsTemplates": "https://dns11.quad9.net/dns-query?dns https://dns11.quad9.net:5053/dns-query?dns" } diff --git a/etc/opt/chromium/policies/managed/doh-quad9.json b/etc/opt/chromium/policies/managed/doh-quad9.json index b63d27d0..32b7b6bb 100644 --- a/etc/opt/chromium/policies/managed/doh-quad9.json +++ b/etc/opt/chromium/policies/managed/doh-quad9.json @@ -1,4 +1,4 @@ { "DnsOverHttpsMode": "automatic", - "DnsOverHttpsTemplates": "https://dns.quad9.net/dns-query https://dns.quad9.net:5053/dns-query" + "DnsOverHttpsTemplates": "https://dns.quad9.net/dns-query?dns https://dns.quad9.net:5053/dns-query?dns" }