Open in the explorer

Configure encrypted name resolution

Configurer la résolution de noms chiffrés

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › DNS Client FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Client DNS
Supported on
At least Windows Server 20H2, Windows 10 Version 20H2 FR: Au minimum Windows Server 20H2, Windows 10 version 20H2
ADMX file
DnsClient.admx
Internal name
DnsClient/DNS_Doh

Explanation

Specifies if the DNS client will perform name resolution over encrypted protocols.

By default, the DNS client will do classic DNS name resolution (over UDP or TCP port 53). This setting can enhance the DNS client to use encrypted protocols to resolve domain names.

To use this policy setting, click Enabled, and then select one of the following options from the drop-down list:

Prohibit encryption: no encrypted name resolution will be performed.

Allow encryption: Use encrypted name resolution if the configured servers support it. If they don't support it, try classic name resolution.

Require encryption: Allow only encrypted name resolution. If there are no configured DNS servers that handle encryption, name resolution will fail.

In addition to the generic encryption policy, additional policies can be configured at the individual protocol level.

For example, in order to force DoT name resolution only, a combination of "Require encryption" and "Block DoH" would be needed (vice versa to force DoH).

For the example above, it is the admin's responsibility to ensure that if DoT is forced, there are valid DoT servers configured on the machine (vice versa for DoH).

If you disable this policy setting, or if you do not configure this policy setting, the DNS client will use locally configured settings. DDR (Discovery of Designated Resolvers) plaintext traffic will be allowed as it is necessary for auto-discovering encryption settings.

French text from Windows 11 26H2

Spécifie si le client DNS effectue la résolution de noms sur des protocoles chiffrés.

Par défaut, le client DNS effectue la résolution de noms DNS classique (sur le port UDP ou TCP 53). Ce paramètre peut améliorer le client DNS afin d’utiliser des protocoles chiffrés pour résoudre les noms de domaine.

Pour utiliser ce paramètre de stratégie, cliquez sur Activer, puis sélectionnez l’une des options suivantes dans la liste déroulante :

Interdire le chiffrement : aucune résolution de nom chiffrée ne sera effectuée.

Autoriser le chiffrement : utiliser la résolution de noms chiffrés si les serveurs configurés le prennent en charge. S’ils ne la prennent pas en charge, essayez la résolution de noms classique.

Exiger le chiffrement : autoriser uniquement la résolution de noms chiffrés. Si aucun serveur DNS configuré ne gère le chiffrement, la résolution de noms échouera.

En plus de la stratégie de chiffrement générique, des stratégies supplémentaires peuvent être configurées au niveau du protocole individuel.

Par exemple, pour forcer la résolution de nom DoT uniquement, une combinaison de « Exiger le chiffrement » et « Bloquer DoH » est nécessaire (inversement pour forcer DoH).

Pour l’exemple ci-dessus, il est de la responsabilité de l’administrateur de s’assurer que si DoT est forcé, des serveurs DoT valides sont configurés sur l’ordinateur (inversement pour DoH).

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le client DNS utilise les paramètres configurés localement. Le trafic en texte clair DDR (Détection des résolveurs désignés) sera autorisé, car il est nécessaire pour la découverte automatique des paramètres de chiffrement.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: DnsClient/DNS_Doh
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Configure encryption options
# Possible options:
#   Require encryption = 3
#   Allow encryption = 2
#   Prohibit encryption = 1
Set-ItemProperty -Path $k -Name 'DoHPolicy' -Value 3 -Type DWord
# Configure DoH specific options
# Possible options:
#   Allow DoH = 0
#   Block DoH = 1
Set-ItemProperty -Path $k -Name 'DohPolicySetting' -Value 0 -Type DWord
# Configure DoT specific options
# Possible options:
#   Allow DoT = 0
#   Block DoT = 1
Set-ItemProperty -Path $k -Name 'DotPolicySetting' -Value 0 -Type DWord

Disable

# Disable: DnsClient/DNS_Doh
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": DnsClient/DNS_Doh
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
Remove-ItemProperty -Path $k -Name 'DoHPolicy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DohPolicySetting' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DotPolicySetting' -ErrorAction SilentlyContinue

Options (3)

LabelControlRegistry valueREG typeConstraints / details
Configure encryption options:Configurer les options de chiffrement :DNS_Doh_BoxDrop-down listenumDoHPolicyREG_DWORD
Required · Default choice (UI): #0
LabelValue
Require encryptionREG_DWORD = 3
Allow encryptionREG_DWORD = 2
Prohibit encryptionREG_DWORD = 1
Configure DoH specific options:Configurer des options spécifiques au DoH :DNS_Doh_Setting_BoxDrop-down listenumDohPolicySettingREG_DWORD
Required · Default choice (UI): #0
LabelValue
Allow DoHREG_DWORD = 0
Block DoHREG_DWORD = 1
Configure DoT specific options:Configurer les options spécifiques à DoT :DNS_Dot_Setting_BoxDrop-down listenumDotPolicySettingREG_DWORD
Required · Default choice (UI): #0
LabelValue
Allow DoTREG_DWORD = 0
Block DoTREG_DWORD = 1

Availability

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server