Specify address lookup behavior for DC locator ping
Spécifier le type de recherche d’adresse pour la requête Ping du localisateur de contrôleurs de domaine
Explanation
This policy setting configures how a domain controller (DC) behaves when responding to a client whose IP address does not map to any configured site.
Domain controllers use the client IP address during a DC locator ping request to compute which Active Directory site the client belongs to. If no site mapping can be computed, the DC may do an address lookup on the client network name to discover other IP addresses which may then be used to compute a matching site for the client.
The allowable values for this setting result in the following behaviors:
0 - DCs will never perform address lookups.
1 - DCs will perform an exhaustive address lookup to discover additional client IP addresses.
2 - DCs will perform a fast, DNS-only address lookup to discover additional client IP addresses.
To specify this behavior in the DC Locator DNS SRV records, click Enabled, and then enter a value. The range of values is from 0 to 2.
If you do not configure this policy setting, it is not applied to any DCs, and DCs use their local configuration.
Ce paramètre de stratégie configure le comportement d’un contrôleur de domaine lors de la réponse à un client dont l’adresse IP ne correspond à aucun site configuré.
Les contrôleurs de domaine utilisent l’adresse IP lors d’une requête Ping au localisateur de contrôleurs de domaine pour déterminer le site Active Directory auquel le client appartient. Si aucun mappage de site ne peut être déterminé, le contrôleur de domaine peut être amené à effectuer une recherche d’adresse d’après le nom du réseau du client pour découvrir d’autres adresses IP susceptibles d’être utilisées pour déterminer un site correspondant au client.
Les valeurs autorisées pour ce paramètre entraînent les comportements suivants :
0 - Les contrôleurs de domaines n’effectuent jamais de recherche d’adresses.
1 - Ils effectuent une recherche d’adresse exhaustive pour découvrir d’autres adresses IP de clients.
2 - Ils réalisent une recherche d’adresse rapide limitée au DNS pour découvrir d’autres adresses IP de clients.
Pour spécifier ce comportement dans les enregistrements DNS SRV du localisateur de contrôleurs de domaine, cliquez sur Activé, puis entrez une valeur. La plage des valeurs est comprise entre 0 et 2.
Si vous ne configurez pas ce paramètre de stratégie, il n’est appliqué à aucun contrôleur de domaine et les contrôleurs de domaine utilisent leur configuration locale.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Netlogon\Parameters- 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: Netlogon/Netlogon_AddressLookupOnPingBehavior
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Address lookup behavior
Set-ItemProperty -Path $k -Name 'AddressLookupOnPingBehavior' -Value 2 -Type DWord # maximum 2Disable
# Disable: Netlogon/Netlogon_AddressLookupOnPingBehavior
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Netlogon/Netlogon_AddressLookupOnPingBehavior
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'AddressLookupOnPingBehavior' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Address lookup behavior:Comportement de recherche des adresses :Netlogon_AddressLookupOnPingBehaviorLabel | Numeric boxdecimal | AddressLookupOnPingBehavior | REG_DWORD | Max: 2 · Default (UI): 2 |