Open in the explorer

TTL value for A and PTR records

Valeur TTL pour les enregistrements A et PTR

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 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
DnsClient.admx
Internal name
DnsClient/DNS_RegistrationTtl

Explanation

Specifies the value of the time to live (TTL) field in A and PTR resource records that are registered by the DNS client to which this policy setting is applied.

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

If you enable this policy setting, the TTL value that you specify will be applied to DNS resource records registered for all network connections used by the DNS client.

If you disable this policy setting, or if you do not configure this policy setting, the DNS client will use the TTL settings specified in DNS. By default, the TTL is 1200 seconds (20 minutes).

French text from Windows 11 26H2

Spécifie la valeur du champ durée de vie dans les enregistrements de ressources A et PTR inscrits par le client DNS auquel ce paramètre de stratégie est appliqué.

Pour spécifier la durée de vie, cliquez sur Activer, puis entrez une valeur en secondes (par exemple, 900 correspond à 15 minutes).

Si vous activez ce paramètre de stratégie, la valeur de durée de vie que vous spécifiez est appliquée aux enregistrements de ressources DNS inscrits pour toutes les connexions réseau utilisées par le client DNS.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le client DNS utilise les paramètres de durée de vie spécifiés dans DNS. Par défaut, la durée de vie est de 1 200 secondes (20 minutes).

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

Disable

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

Revert to "Not configured"

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

Options (1)

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

Availability