Turn off smart multi-homed name resolution in Windows

Martin Brinkmann
Aug 14, 2017
Windows, Windows 10, Windows 8
|
8

Smart multi-homed name resolution is a DNS related feature that Microsoft introduced in Windows 8 and implemented in Windows 10 as well.

The feature is designed to speed up DNS resolution on a device running Windows 8 or newer by sending DNS requests across all available network adapters. Microsoft refined the feature in Windows 10 as it selects the information that is returned the fastest automatically.

While the feature makes sense from a performance point of view, it introduces an issue from a privacy one.

If you connect to a VPN network on a Windows machine for instance, smart multi-homed name resolution may lead to DNS leakage. Since requests are sent out to all network adapters at the same time, all configured DNS servers receive the requests and with them information on the sites that you visit.

Turn off smart multi-homed name resolution in Windows

Microsoft introduced a Registry key and policy to manage the feature in Windows 8.

Registry (Windows 8.x only)

Note: manipulating the Registry may lead to issues if done incorrectly. It is suggested that you create a backup of the Windows Registry before you continue. This can be done by selecting a Registry Hive in the Registry Editor, and then File > Export from the menu bar.

  1. Open the Windows Registry Editor. One easy option to do that is to tap on the Windows-key, type regedit.exe, and hit the Enter-key.  Windows throws an UAC prompt which you need to confirm.
  2. Go to HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient
  3. If the Dword value DisableSmartNameResolution exists already, make sure it is set to 1.
  4. If it does not exist, right-click on DNSClient, and select New > Dword (32-bit) Value from the menu.
  5. Name it DisableSmartNameResolution.
  6. Set its value to 1. You may turn the feature back on at any time by setting the value to 0, or by deleting the Dword value.
  7. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
  8. If the Dword value DisableParallelAandAAAA  exists already, make sure its value is set to 1.
  9. If the value does not exist, right-click on Parameters, and select New > Dword (32-bit) Value.
  10. Name it DisableParallelAandAAAA.
  11. Set the value of the Dword to 1. You can turn the feature back on by setting the value to 0, or by deleting the value.

I have created a Registry file that makes both changes to the Windows Registry when executed. You can download it with a click on the following link: (Download Removed)

Group Policy (Windows 8 and Windows 10)

turn off smart-multi homed name resolution

The Registry key that worked under Windows 8 does not seem to work under Windows 10 anymore. Windows 10 users and admins may set a policy however to turn the feature off.

Specifies that a multi-homed DNS client should optimize name resolution across networks. The setting improves performance by issuing parallel DNS, link local multicast name resolution (LLMNR) and NetBIOS over TCP/IP (NetBT) queries across all networks. In the event that multiple positive responses are received, the network binding order is used to determine which response to accept.

Note that the Group Policy Editor is only available in professional editions of Windows 10. Windows 10 Home users may want to check out Policy Plus that introduces policy editing to Home editions of Windows 10.

  1. Do the following to open the Group Policy Editor in Windows: Tap on the Windows-key on the keyboard, type gpedit.msc, and hit the Enter-key on the keyboard.
  2. Go to Computer Configuration > Administrative Templates > Network > DNS Client > Turn off smart multi-homed name resolution.
  3. Set the policy to enabled, to disable the smart multi-homed name resolution feature of the system.

If you enable this policy setting, the DNS client will not perform any optimizations. DNS queries will be issued across all networks first. LLMNR queries will be issued if the DNS queries fail, followed by NetBT queries if LLMNR queries fail.

Closing Words

Some DNS clients that you may run on Windows machines come with DNS leak protection to prevent these leaks. OpenDNS users may enable the block-outside-dns option for instance in the client to do so.

Summary
Turn off smart multi-homed name resolution in Windows
Article Name
Turn off smart multi-homed name resolution in Windows
Description
Smart multi-homed name resolution is a DNS related feature that Microsoft introduced in Windows 8 and implemented in Windows 10 as well.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. webdevhell said on April 21, 2021 at 3:21 pm
    Reply

    Win 10 Home needs a script to get Gpedit available.

  2. guest said on December 3, 2019 at 12:00 pm
    Reply

    None of the following worked:

    – Disable the ‘server’ service
    – Group policy editor: allow netbt queries for fully qualified domain names = disabled
    – Group policy editor: Turn off smart multi-homed name resolution

    mat9v said on August 14, 2017
    There is an error in this guide. “Turn off smart multi-homed name resolution” disables concurrent sending DNS requests over TCP/IP, LLMNR and NetBT, but they will still be sent over all active adapters in the system, just not concurrently but one after another if previous fail.

    Correct. NetBIOS DNS requests on port 137 are sent over UDP and this does nothing to stop it. I have a desktop firewall and the alerts just keep coming, every time I open a new web page it wants to make another NetBIOS connection. This is the solution:
    _________

    Click start, control panel, network connections, double click your NIC, click properties, highlight internet protocol (TCP/IP), properties, advanced, WINS tab, make sure Disable NetBIOS over TCP/IP is checked, click OK.

    https://arstechnica.com/civis/viewtopic.php?p=15460842

  3. cheaterslick said on November 30, 2017 at 3:55 am
    Reply

    Martin, I hope you included this in your Windows Privacy Guide. If not, hopefully it will be included in your next edition.

    Thanks

  4. AAA said on August 29, 2017 at 5:52 am
    Reply

    Privacy (noun) : the state or condition of being free from being observed or disturbed by other people.

    Clearly there’s no privacy when it comes to using the electronic gadgets. We are creating our Digital-Self, pretty much like in that movie called ‘Transcendence’. Things we do, watch, click on… everything bundles up into a valuable data. I don’t think these Tech giants would allow us to be completely free. With your digital footprints, not only the past, present or future can be analyzed, but also your future generations to come; your kids.

    The Internet is dark and full of terror…. **goes back to hiding in the closet**

  5. Toby said on August 17, 2017 at 5:15 am
    Reply

    What about multicast name resolution?

    Specifies that link local multicast name resolution (LLMNR) is disabled on client computers.

    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 client computer to another client computer 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 client computer.

    If you disable this policy setting, or you do not configure this policy setting, LLMNR will be enabled on all available network adapters.

  6. Tom Hawack said on August 14, 2017 at 4:18 pm
    Reply

    Yet another Microsoft “speed before privacy” issue, and moreover only editable via the Registry or the Group Policy (only the latter — moreover#2 — in Windows 10). Happier than ever to have blocked the W10 tsunami, to stick and remain with Windows 7. Until when? Que sera sera …

    I ignored this multi-homed name resolution in Windows 8 and 10, good to know.

    Preventing circumvention of OpenDNS with firewall rules is fine as long as you don’t switch to another DNS, of course. Would be problematic — extremely inadvisable – on systems (Win8-10) using DNSCrypt.

  7. mat9v said on August 14, 2017 at 2:49 pm
    Reply

    There is an error in this guide.
    “Turn off smart multi-homed name resolution” disables concurrent sending DNS requests over TCP/IP, LLMNR and NetBT, but they will still be sent over all active adapters in the system, just not concurrently but one after another if previous fail.

  8. TelV said on August 14, 2017 at 10:52 am
    Reply

    Thanks for the tip Martin. I had to create the DNSClient key as well as the value, but the system rebooted without any issues afterwards.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.