Use DNS name resolution with a single-label domain name instead of NetBIOS name resolution to locate the DC
Utiliser la résolution de noms DNS avec un nom de domaine en une partie au lieu de la résolution de noms NetBIOS pour localiser le contrôleur de domaine
Explanation
This policy setting specifies whether the computers to which this setting is applied attempt DNS name resolution of a single-label domain names.
By default, the behavior specified in the AllowDnsSuffixSearch is used. If the AllowDnsSuffixSearch policy is disabled, then NetBIOS name resolution is used exclusively, to locate a domain controller hosting an Active Directory domain specified with a single-label name.
If you enable this policy setting, computers to which this policy is applied will attempt to locate a domain controller hosting an Active Directory domain specified with a single-label name using DNS name resolution.
If you disable this policy setting, computers to which this setting is applied will use the AllowDnsSuffixSearch policy, if it is not disabled or perform NetBIOS name resolution otherwise, to attempt to locate a domain controller that hosts an Active Directory domain specified with a single-label name. the computers will not the DNS name resolution in this case, unless the computer is searching for a domain with a single label DNS name that exists in the Active Directory forest to which this computer is joined.
If you do not configure this policy setting, it is not applied to any computers, and computers use their local configuration.
Ce paramètre de stratégie indique si les ordinateurs auxquels ce paramètre est appliqué tentent la résolution de noms DNS des noms de domaine en une seule partie.
Par défaut, le comportement spécifié dans la stratégie AllowDnsSuffixSearch est utilisé. Si la stratégie AllowDnsSuffixSearch est désactivée, la résolution de noms NetBIOS est utilisée de manière exclusive pour localiser un contrôleur de domaine qui héberge un domaine Active Directory spécifié à l’aide d’un nom en une seule partie.
Si vous activez ce paramètre de stratégie, les ordinateurs auxquels ce paramètre de stratégie est appliqué tentent de localiser un contrôleur de domaine qui héberge un domaine Active Directory spécifié à l’aide d’un nom en une seule partie en utilisant la résolution de noms DNS.
Si vous désactivez ce paramètre de stratégie, les ordinateurs auxquels il est appliqué utilisent la stratégie AllowDnsSuffixSearch, si elle n’est pas désactivée, ou effectue une résolution de noms NetBIOS dans le cas contraire, pour tenter de trouver un contrôleur de domaine qui héberge un domaine Active Directory spécifié à l’aide d’un nom en une seule partie. Les ordinateurs n’utilisent pas la résolution de noms DNS dans ce cas, sauf si l’ordinateur recherche un domaine avec un nom DNS en une seule partie dans la forêt Active Directory dont il est membre.
Si vous ne configurez pas ce paramètre de stratégie, il n’est appliqué à aucun ordinateur et les ordinateurs utilisent leur configuration locale.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Netlogon\Parameters- Value name
AllowSingleLabelDnsDomain
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: Netlogon/Netlogon_AllowSingleLabelDnsDomain
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSingleLabelDnsDomain' -Value 1 -Type DWordDisable
# Disable: Netlogon/Netlogon_AllowSingleLabelDnsDomain
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSingleLabelDnsDomain' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Netlogon/Netlogon_AllowSingleLabelDnsDomain
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'AllowSingleLabelDnsDomain' -ErrorAction SilentlyContinue