Open in the explorer

Connection-specific DNS suffix

Suffixe DNS spécifique à la connexion

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
Windows XP Professional only FR: Windows XP Professionnel uniquement
ADMX file
DnsClient.admx
Internal name
DnsClient/DNS_Domain

Explanation

Specifies a connection-specific DNS suffix. This policy setting supersedes local connection-specific DNS suffixes, and those configured using DHCP.

To use this policy setting, click Enabled, and then enter a string value representing the DNS suffix.

If you enable this policy setting, the DNS suffix that you enter will be applied to 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 local or DHCP supplied connection specific DNS suffix, if configured.

French text from Windows 11 26H2

Spécifie un suffixe DNS spécifique à la connexion. Ce paramètre de stratégie remplace les suffixes DNS spécifiques à la connexion locale et ceux configurés à l’aide de DHCP.

Pour utiliser ce paramètre de stratégie, cliquez sur Activer, puis entrez une valeur de chaîne représentant le suffixe DNS.

Si vous activez ce paramètre de stratégie, le suffixe DNS que vous entrez est appliqué à 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 le suffixe DNS local ou spécifique à la connexion fournie par DHCP, s’il est configuré.

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_Domain
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# DNS suffix
Set-ItemProperty -Path $k -Name 'AdapterDomainName' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
DNS suffix:Suffixe DNS :DNS_DomainLabelText boxtextAdapterDomainNameREG_SZ
Required

Availability