networkingsecurity

Kept in this browser · My desk

Stands for: Multicast DNS

Name resolution by multicast for names under .local, specified in RFC 6762 (February 2013), with which devices on a link answer for their own names on UDP port 5353 without a DNS server.

It underpins zero-configuration service discovery (printers, screen casting, file sharing between personal devices) together with DNS-Based Service Discovery, and it is the one multicast name protocol Microsoft intends to keep on by default in Windows. It is better scoped than LLMNR and NetBIOS because it is confined to .local, but it still trusts whoever answers, and MITRE lists it beside them among the protocols attackers poison.

What it is. RFC 6762, 'Multicast DNS', and its companion RFC 6763, 'DNS-Based Service Discovery', were published by Stuart Cheshire and Marc Krochmal of Apple in February 2013. mDNS uses the ordinary DNS message format but sends queries to the multicast address 224.0.0.251 (IPv4) or FF02::FB (IPv6) on UDP port 5353. It is meant for names ending in .local, which by definition have only local significance; RFC 6763 then uses ordinary DNS record types (PTR, SRV, TXT) under that domain to advertise and browse services.

How it works. A host that wants a name first probes for it, asking whether anyone else already uses it, then announces it (section 8); simultaneous probes are settled by a tiebreak in which 'the lexicographically later data wins' (8.2), and hosts answer queries for their own records. Questions can request unicast responses (5.4). LLMNR, by contrast, answers for any single-label name and NetBIOS for any 15-character name, which is why the .local limit matters: a client that follows RFC 6762 never asks the link about a global name such as a bank's.

Security, as the RFC states it. Its conflict resolution 'is, by its very nature, an algorithm that assumes cooperating participants'; 'In an environment where the participants are mutually antagonistic and unwilling to cooperate, other mechanisms are appropriate, like manually configured DNS'; where hosts cannot be sure there are no antagonistic hosts on the link, they 'need to use IPsec signatures and/or DNSSEC signatures'. It warns that sending queries for global names to the multicast address during an outage is 'especially' dangerous, because the user may believe they reach an authentic host when it is 'merely masquerading as that name'.

On the record and in practice. MITRE's T1557.001 names mDNS (UDP 5353) with LLMNR and NBT-NS as protocols an adversary answers 'as if they know the identity of the requested host' to collect or relay credentials. Microsoft's networking blog of 22 April 2022 set the goal that 'mDNS is the only multicast name resolution protocol on by default' in Windows, while turning NetBIOS name resolution towards off; its own commenters raised a question still open in November 2026, whether mDNS on untrusted networks needs protection too. In practice the defence is scope: allow mDNS on the segments where discovery is needed, filter it on hostile or guest networks, and keep every global and internal name on DNS. What goes wrong: devices that resolve non-.local names over multicast, and flat networks where every guest can answer for the conference-room display.

Numbers from the RFC. Before probing, a host waits a random delay 'uniformly distributed in the range 0-250 ms', so devices powered on together do not probe in step; probes ask for the desired name with query type ANY (255) so one question covers every record type, and 'from the time the first probe packet is sent, another device on the network using that name has just 750 ms to respond to defend its name', and the RFC itself notes that on slow or busy networks round-trip latency can exceed that window, so a legitimate owner may fail to defend its name in time. On Windows, Microsoft's 2022 learning mode orders the fallbacks: NetBIOS is used only after mDNS and LLMNR queries fail. Probes must ignore the cache: only conflicting answers received 'live' from the network count. Multicast DNS uses the top bit of a question's class field as the unicast-response bit ('QU' questions), and the top bit of a record's class as the cache-flush bit, which tells listeners to discard older records for the name. Each of these is a cooperative mechanism: a host that answers every probe can deny others their names, and one that sets cache-flush can push its record into every cache on the link, which is exactly the antagonistic case section 21 says needs signatures or manual DNS. MITRE describes mDNS as 'a zero-configuration service used to resolve hostnames to IP addresses with .local as a top-level domain'.

Neighbours. LLMNR and NetBIOS Name Service, DNS-SD, unicast DNS and DNSSEC, and name resolution poisoning.

Also known as: multicast dns, rfc 6762, port 5353, dns-sd

← Back to M Back to the glossary