Open in the explorer

Primary DNS suffix

Suffixe DNS principal

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 2000 FR: Au minimum Windows 2000
ADMX file
DnsClient.admx
Internal name
DnsClient/DNS_PrimaryDnsSuffix

Explanation

Specifies the primary DNS suffix used by the DNS client in DNS name registration and DNS name resolution.

To use this policy setting, click Enabled and enter the entire primary DNS suffix you want to assign. For example: microsoft.com.

Important: In order for changes to this policy setting to be applied on the DNS client, you must restart Windows.

If you enable this policy setting, it supersedes the primary DNS suffix configured in the DNS Suffix and NetBIOS Computer Name dialog box using the System control panel.

You can use this policy setting to prevent users, including local administrators, from changing the primary DNS suffix.

If you disable this policy setting, or if you do not configure this policy setting, the DNS client uses the local primary DNS suffix, which is usually the DNS name of Active Directory domain to which it is joined.

French text from Windows 11 26H2

Spécifie le suffixe DNS principal utilisé par le client DNS dans l’inscription de nom DNS et la résolution de noms DNS.

Pour utiliser ce paramètre de stratégie, cliquez sur Activer et entrez l’intégralité du suffixe DNS principal à attribuer. Par exemple : microsoft.com.

Important : pour que les modifications apportées à ce paramètre de stratégie soient appliquées au client DNS, vous devez redémarrer Windows.

Si vous activez ce paramètre de stratégie, il remplace le suffixe DNS principal configuré dans la boîte de dialogue Nom d’ordinateur NetBIOS et Suffixe DNS à l’aide du Panneau de configuration Système.

Vous pouvez utiliser ce paramètre de stratégie pour empêcher les utilisateurs, y compris les administrateurs locaux, de modifier le suffixe DNS principal.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le client DNS utilise le suffixe DNS principal local, qui est généralement le nom DNS de Active Directory domaine auquel il est joint.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\System\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_PrimaryDnsSuffix
$k = 'HKLM:\Software\Policies\Microsoft\System\DNSClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enter a primary DNS suffix
Set-ItemProperty -Path $k -Name 'NV PrimaryDnsSuffix' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": DnsClient/DNS_PrimaryDnsSuffix
$k = 'HKLM:\Software\Policies\Microsoft\System\DNSClient'
Remove-ItemProperty -Path $k -Name 'NV PrimaryDnsSuffix' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Enter a primary DNS suffix:Entrez un suffixe DNS principal :DNS_PrimaryDnsSuffixBoxText boxtextNV PrimaryDnsSuffixREG_SZ

Availability