Controls the mode of DNS-over-HTTPS: registry value DnsOverHttpsModeUserHKCU\Software\Policies\Google\Chrome
- Policy ID
- DnsOverHttpsMode
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Windows 7 or later
- Source
- Google Chrome Policy Templates (version 156.0.8078.80)
- Category
- Google › Google Chrome
Registry
DnsOverHttpsMode
REG_SZUserComputer…\Software\Policies\Google\ChromeHKCU\Software\Policies\Google\Chrome Current key
HKLM\Software\Policies\Google\Chrome
HKLM\Software\Policies\Google\Chrome
- Enabled value
- Depends on the option value
- Element
- Controls the mode of DNS-over-HTTPS
| Item | Stored value |
|---|---|
| Disable DNS-over-HTTPS | off |
| Enable DNS-over-HTTPS with insecure fallback | automatic |
| Enable DNS-over-HTTPS without insecure fallback | secure |
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; Options (use only one) ; Disable DNS-over-HTTPS "DnsOverHttpsMode"="off" ; Enable DNS-over-HTTPS with insecure fallback "DnsOverHttpsMode"="automatic" ; Enable DNS-over-HTTPS without insecure fallback "DnsOverHttpsMode"="secure"
CMD
:: Options (use only one) :: Disable DNS-over-HTTPS reg add "HKCU\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "off" /f :: Enable DNS-over-HTTPS with insecure fallback reg add "HKCU\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "automatic" /f :: Enable DNS-over-HTTPS without insecure fallback reg add "HKCU\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "secure" /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (use only one) # Disable DNS-over-HTTPS New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'off' -Force | Out-Null # Enable DNS-over-HTTPS with insecure fallback New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'automatic' -Force | Out-Null # Enable DNS-over-HTTPS without insecure fallback New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'secure' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] ; Options (use only one) ; Disable DNS-over-HTTPS "DnsOverHttpsMode"="off" ; Enable DNS-over-HTTPS with insecure fallback "DnsOverHttpsMode"="automatic" ; Enable DNS-over-HTTPS without insecure fallback "DnsOverHttpsMode"="secure"
CMD
:: Options (use only one) :: Disable DNS-over-HTTPS reg add "HKLM\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "off" /f :: Enable DNS-over-HTTPS with insecure fallback reg add "HKLM\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "automatic" /f :: Enable DNS-over-HTTPS without insecure fallback reg add "HKLM\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "secure" /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (use only one) # Disable DNS-over-HTTPS New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'off' -Force | Out-Null # Enable DNS-over-HTTPS with insecure fallback New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'automatic' -Force | Out-Null # Enable DNS-over-HTTPS without insecure fallback New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'secure' -Force | Out-Null