Ouvrir dans l'explorateur

Inscrire des enregistrements DNS avec un suffixe DNS spécifique à la connexion

Register DNS records with connection-specific DNS suffix

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Client DNS EN : Computer Configuration › Policies › Administrative Templates › Network › DNS Client
Pris en charge sur
Au minimum Windows Server 2003 ou Windows XP Professionnel EN : At least Windows Server 2003 operating systems or Windows XP Professional
Fichier ADMX
DnsClient.admx
Nom interne
DnsClient/DNS_RegisterAdapterName

Explication

Texte français issu de Windows 11 26H2

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.

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.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient
Nom de la valeur
RegisterAdapterName
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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 DWord

Désactiver

# Désactiver : 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 DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : DnsClient/DNS_RegisterAdapterName
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
Remove-ItemProperty -Path $k -Name 'RegisterAdapterName' -ErrorAction SilentlyContinue

Disponibilité