Open in the explorer

Set TTL in the DC Locator DNS Records

Définir la durée de vie dans les enregistrements DNS du localisateur de contrôleurs de domaine

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Net Logon › DC Locator DNS Records FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Net Logon › Enregistrements DNS du localisateur de contrôleurs de domaine
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
Netlogon.admx
Internal name
Netlogon/Netlogon_DnsTtl

Explanation

This policy setting specifies the value for the Time-To-Live (TTL) field in SRV resource records that are registered by the Net Logon service. These DNS records are dynamically registered, and they are used to locate the domain controller (DC).

To specify the TTL for DC Locator DNS records, click Enabled, and then enter a value in seconds (for example, the value "900" is 15 minutes).

If you do not configure this policy setting, it is not applied to any DCs, and DCs use their local configuration.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie la valeur du champ Durée de vie dans les enregistrements de ressources SRV inscrits par le service Net Logon. Ces enregistrements DNS sont inscrits dynamiquement et sont utilisés pour localiser le contrôleur de domaine.

Pour spécifier la durée de vie des enregistrements DNS du localisateur de contrôleurs de domaine, cliquez sur Activer, puis entrez une valeur en secondes (par exemple, la valeur 900 correspond à 15 minutes).

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_DnsTtl
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Seconds
Set-ItemProperty -Path $k -Name 'DnsTtl' -Value 600 -Type DWord  # maximum 4294967200

Disable

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

Revert to "Not configured"

# Revert to "Not configured": Netlogon/Netlogon_DnsTtl
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'DnsTtl' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Seconds:Secondes :Netlogon_DnsTtlLabelNumeric boxdecimalDnsTtlREG_DWORD
Max: 4294967200 · Default (UI): 600

Availability