Skip to content

Instantly share code, notes, and snippets.

@birdie-github
Last active March 13, 2025 03:32
Show Gist options
  • Save birdie-github/d09d1c38bf4e1faa0b929093d75a3349 to your computer and use it in GitHub Desktop.
Save birdie-github/d09d1c38bf4e1faa0b929093d75a3349 to your computer and use it in GitHub Desktop.
Chrome for Linux: a policy to enable Manifest V2 and force enable DNS over HTTPS using CloudFlare's one.one.one.one server

This is for the official Google Chrome. No idea how Chromium works - it depends on your distro. The policy files are most likely compatible with Chromium forks as well but again the policies directory will be different.

To be put into /etc/opt/chrome/policies/managed:
DoH.json:{ "DnsOverHttpsMode": "secure" }
DoH-server.json:{ "DnsOverHttpsTemplates": "https://one.one.one.one/dns-query" }
ExtensionManifestV2Availability.json:{ "ExtensionManifestV2Availability": 2 }

Files names are totally arbitrary.

The first two are necessary to restore DoH (DNS over HTTPs), because when enterprise policies are enabled, Google Chrome completely disables DoH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment