Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standard mDNS service on Windows

Tags:

Does Windows (some modern flavour) have an mDNS server installed and/or running by default? If so then how does one tell it, preferably dynamically, to start/stop advertising a new service?

If there is no standard then how does one deal with the problem of conflicts trying to run multiple mDNS servers in that environment?

Basically, I want to implement a service that will run on Linux, Windows and Mac OS X and which needs to advertise its zeroconf webserver location using mDNS. On Linux I just use avahi-publish (or install a config file). I'm guessing that the answer will be straightforward for OS X. I'm struggling to find information for Windows.

like image 728
awy Avatar asked May 13 '14 06:05

awy


People also ask

Does mDNS work on Windows?

Starting with Windows 10 1703 Microsoft has included native support for multicast DNS, or mDNS.

How do I enable mDNS on Windows?

Navigate to the registry key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient. If the key does not exist, you may need to create it. Then add the value EnableMulticast as a REG_DWORD, with the value 0. Reboot.

What service is mDNS?

Multicast DNS (mDNS) provides a naming service system that is easy to set up and maintain, for computers on a local link. All participating network devices on the same local link perform standard DNS functions, using multicast DNS rather than unicast, and do not need a unicast DNS server.


1 Answers

Starting with Windows 10, Microsoft made strides towards a native Windows implementation of mDNS and DNS-SD.

While earlier iterations have been limited to UWP apps, a general Win32 API has been exposed from at least SDK version 10.0.18362.0 (1903/19H1, May 2019).

Note: This implementation is currently confirmed working only for 64bit build targets, there is an open issue preventing compilation for 32bit targets.

Outdated note from a previous version of this answer:

Early iterations resulted in mDNS network flooding:

Windows 10, in its default configuration, will spam its local networks by responding to all mDNS requests with null response packets.

This issue was fixed in Windows 10 1511 (10586) and above

like image 143
Jens Habegger Avatar answered Sep 17 '22 14:09

Jens Habegger