Enable Secure DNS from macOS command line? (for "managed browsers")

Description of the issue: I use the macOS defaults command to disable the Chromium-native print-preview . However, when you do this, Brave thinks it’s “managed by your organization” and disables the ability to turn on Secure DNS. How can I turn that on via the command line on macOS?
How can this issue be reproduced?

  1. Run defaults write com.brave.Browser DisablePrintPreview -bool true at the macOS command line
  2. Go into "settings::Privacy and security::Security::Advanced
    " and try to turn on “Use secure DNS”
    Screenshot 2023-04-10 at 5.25.53 PM

Screenshot 2023-04-10 at 5.21.36 PM

Expected result:

Brave Version( check About Brave):

Additional Information:

I am the “manager” of my brave install. What would the equivalent defaults write com.brave.Browser .... command be to turn on Secure DNS?

It’s due to a design choice by Google and therefore affects all Chromium browsers. I’ve not applied MacOS polices so am unable to provide instructions for MacOS, however the two policies to enable DNS-over-HTTPS via policy are below.

Controls the mode of DNS-over-HTTPS
Name: DnsOverHttpsMode
Value: secure
Type: string

Specify URI template of desired DNS-over-HTTPS resolver
Name: DnsOverHttpsTemplates
Value: https://dns.quad9.net/dns-query
Type: string

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.