Turn off default IPv6 DNS Servers
Désactiver les serveurs DNS IPv6 par défaut
Explanation
If you enable this policy, the DNS client will not use the default IPv6 DNS server addresses provided by Windows.
French text from Windows 11 26H2
Si vous activez cette stratégie, le client DNS n’utilise pas les adresses de serveur DNS IPv6 par défaut fournies par Windows.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient- Value name
DisableIPv6DefaultDnsServers
| 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_TurnOffIPv6DefaultDnsServers
$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 'DisableIPv6DefaultDnsServers' -Value 1 -Type DWordDisable
# Disable: DnsClient/DNS_TurnOffIPv6DefaultDnsServers
$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 'DisableIPv6DefaultDnsServers' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DnsClient/DNS_TurnOffIPv6DefaultDnsServers
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
Remove-ItemProperty -Path $k -Name 'DisableIPv6DefaultDnsServers' -ErrorAction SilentlyContinue