Turn off multicast name resolution
Désactiver la résolution de noms multidiffusion
Explanation
Specifies that link local multicast name resolution (LLMNR) is disabled on the DNS client.
LLMNR is a secondary name resolution protocol. With LLMNR, queries are sent using multicast over a local network link on a single subnet from a DNS client to another DNS client on the same subnet that also has LLMNR enabled. LLMNR does not require a DNS server or DNS client configuration, and provides name resolution in scenarios in which conventional DNS name resolution is not possible.
If you enable this policy setting, LLMNR will be disabled on all available network adapters on the DNS client.
If you disable this policy setting, or you do not configure this policy setting, LLMNR will be enabled on all available network adapters.
Spécifie que la résolution llMNR (Link Local Multicast Name Resolution) est désactivée sur le client DNS.
LLMNR est un protocole de résolution de noms secondaire. Avec LLMNR, les requêtes sont envoyées à l’aide de la multidiffusion sur une liaison de réseau local sur un seul sous-réseau d’un client DNS vers un autre client DNS sur le même sous-réseau pour lequel LLMNR est également activé. LLMNR ne nécessite pas de configuration de serveur DNS ou de client DNS, et fournit une résolution de noms dans les scénarios dans lesquels la résolution de noms DNS classique n’est pas possible.
Si vous activez ce paramètre de stratégie, llMNR est désactivé sur toutes les cartes réseau disponibles sur le client DNS.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, LLMNR est activé sur toutes les cartes réseau disponibles.
Use cases
Disables LLMNR (multicast name resolution), a fallback protocol attackers exploit to poison responses and capture hashes. In a domain where DNS works properly, it brings nothing.
Microsoft has announced it intends to turn off NetBIOS and LLMNR by default in favour of mDNS: you can get ahead by turning it off now, after checking that no devices or software rely on local resolution.
Microsoft source: Aligning on mDNS: Ramping down NetBIOS name resolution and LLMNR
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient- Value name
EnableMulticast
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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/Turn_Off_Multicast
$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 'EnableMulticast' -Value 0 -Type DWordDisable
# Disable: DnsClient/Turn_Off_Multicast
$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 'EnableMulticast' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DnsClient/Turn_Off_Multicast
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
Remove-ItemProperty -Path $k -Name 'EnableMulticast' -ErrorAction SilentlyContinue