Register DNS records with connection-specific DNS suffix
Inscrire des enregistrements DNS avec un suffixe DNS spécifique à la connexion
Explanation
Specifies if the DNS client performing dynamic DNS registration will register A and PTR resource records with a concatenation of its computer name and a connection-specific DNS suffix, in addition to registering these records with a concatenation of its computer name and the primary DNS suffix.
By default, a DNS client performing dynamic DNS registration registers A and PTR resource records with a concatenation of its computer name and the primary DNS suffix. For example, a computer name of mycomputer and a primary DNS suffix of microsoft.com will be registered as: mycomputer.microsoft.com.
If you enable this policy setting, the DNS client will register A and PTR resource records with its connection-specific DNS suffix, in addition to the primary DNS suffix. This applies to all network connections used by the DNS client.
For example, with a computer name of mycomputer, a primary DNS suffix of microsoft.com, and a connection specific DNS suffix of VPNconnection, the DNS client will register A and PTR resource records for mycomputer.VPNconnection and mycomputer.microsoft.com when this policy setting is enabled.
Important: This policy setting is ignored by the DNS client if dynamic DNS registration is disabled.
If you disable this policy setting, or if you do not configure this policy setting, the DNS client will not register any A and PTR resource records using a connection-specific DNS suffix.
Spécifie si le client DNS effectuant une inscription DNS dynamique peut inscrire des enregistrements de ressources A et PTR avec une concaténation de son nom d’ordinateur et d’un suffixe DNS spécifique à la connexion, en plus d’inscrire ces enregistrements avec une concaténation de son nom d’ordinateur et du suffixe DNS principal.
Par défaut, un client DNS effectuant une inscription DNS dynamique inscrit des enregistrements de ressource A et PTR avec une concaténation de son nom d’ordinateur et du suffixe DNS principal. Par exemple, un nom d’ordinateur monordinateur et un suffixe DNS principal microsoft.com sont inscrits sous la forme : monordinateur.microsoft.com.
Si vous activez ce paramètre de stratégie, le client DNS inscrit des enregistrements de ressources A et PTR avec son suffixe DNS spécifique à la connexion, en plus du suffixe DNS principal. Cela s’applique à toutes les connexions réseau utilisées par le client DNS qui reçoivent ce paramètre de stratégie.
Par exemple, si le nom d’ordinateur est monordinateur, le suffixe DNS principal est microsoft.com et le suffixe DNS spécifique à la connexion est VPNconnection, un ordinateur inscrit des enregistrements de ressources A et PTR pour monordinateur.VPNconnection et monordinateur.microsoft.com lorsque ce paramètre de stratégie est activé.
Important : ce paramètre de stratégie est ignoré sur un ordinateur client DNS si l’inscription DNS dynamique est désactivée.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, un ordinateur client DNS n’inscrit aucun enregistrement de ressources A et PTR en utilisant un suffixe DNS spécifique à la connexion.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient- Value name
RegisterAdapterName
| 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: DnsClient/DNS_RegisterAdapterName
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RegisterAdapterName' -Value 1 -Type DWordDisable
# Disable: DnsClient/DNS_RegisterAdapterName
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RegisterAdapterName' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DnsClient/DNS_RegisterAdapterName
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
Remove-ItemProperty -Path $k -Name 'RegisterAdapterName' -ErrorAction SilentlyContinue