ArticleslgStudy

science

Multicast DNS

Multicast DNS is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Multicast DNS rather than just read about it. In short: Multicast DNS (mDNS) is a computer networking protocol that resolves hostnames to IP addresses within small networks without the use of a local name server. It is a zero-configuration service, using essentially the same programming interfaces, packet formats and operating semantics as unicast Domain Name System (DNS).

Key takeaways

  • Multicast DNS belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Multicast DNS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Multicast DNS from memory before moving on to harder problems.

Reference excerpt

Multicast DNS (mDNS) is a computer networking protocol that resolves hostnames to IP addresses within small networks without the use of a local name server. It is a zero-configuration service, using essentially the same programming interfaces, packet formats and operating semantics as unicast Domain Name System (DNS). It was designed to work as either a stand-alone protocol or compatible with standard DNS servers. mDNS uses IP multicast and User Datagram Protocol (UDP) packets and is implemented by Apple, Microsoft and most Linux distributions. mDNS can work in conjunction with DNS Service Discovery (DNS-SD), a companion zero-configuration networking technique specified separately in RFC 6763.

History Multicast DNS was first proposed by Bill Woodcock and Bill Manning in the IETF in 2000, and was eventually published as standards-track RFC 6762 by Stuart Cheshire and Marc Krochmal thirteen years later.

Implementations mDNS is implemented by Apple macOS and iOS (Bonjour), Microsoft since Windows 10, and by open-source Avahi software packages included in most Linux distributions. Although the Windows 10 implementation in earlier releases (version 1703) was limited to discovering networked printers, screen mirroring devices, wireless speakers etc, subsequent releases (Windows 10 version 1903 and later) resolved hostnames as well.

Protocol overview When an mDNS client needs to resolve a hostname, it sends an IP multicast query message that asks the host having that name to identify itself. That target machine then multicasts a message that includes its IP address. All machines in that subnet can then use that information to update their mDNS caches. Any host can relinquish its claim to a name by sending a response packet with a time to live (TTL) equal to zero. By default, mDNS exclusively resolves hostnames ending with the .local top-level domain. This can cause problems if .local includes hosts that do not implement mDNS but that can be found via a conventional unicast DNS server. Resolving such conflicts requires network-configuration changes that mDNS was designed to avoid.

Packet structure An mDNS message is a multicast UDP packet sent using the following addressing:

IPv4 address 224.0.0.251 or IPv6 address ff02::fb UDP port 5353 When using Ethernet frames, the standard IP multicast MAC address 01:00:5E:00:00:FB (for IPv4) or 33:33:00:00:00:FB (for IPv6) The payload structure is based on the unicast DNS packet format, consisting of two parts—the header and the data. The header is identical to that found in unicast DNS, as are the sub-sections in the data part: queries, answers, authoritative-nameservers, and additional records. The number of records in each sub-section matches the value of the corresponding *COUNT field in the header.

Queries The wire format for records in the query section is slightly modified from that in unicast DNS, adding the single-bit UNICAST-RESPONSE field.

As in unicast DNS, the QNAME field consists of a series of length/value sub-fields called labels. Each label represents one of the dot-separated substrings in a fully qualified domain name (FQDN). The list is terminated by either a single null-byte representing the root of the DNS, or by a byte with the two high-order bits set (value 192) to signal an indirect pointer to another location in the message. This is known as name compression in RFC 6762. The UNICAST-RESPONSE field is used to minimize unnecessary broadcasts on the network: if the bit is set, responders SHOULD send a directed-unicast response directly to the inquiring node rather than broadcasting the response to the entire network. The QCLASS field is identical to that found in unicast DNS.

Resource Records All records in the answers, authoritative-nameservers, and additional records sections have the same format and are collectively known as Resource Records (RR). Resource Records in mDNS also have a slightly modified general format compared to unicast DNS:

The CACHE-FLUSH bit is used to instruct neighbor nodes that the record should overwrite, rather than be appended onto, any existing cached entries for this RRNAME and RRTYPE. The formats of the RDATA fields are the same as those found in unicast DNS. However, DNS Service Discovery (DNS-SD), the most common use-case for mDNS, specifies slight modifications to some of their formats (notably TXT records).

See also Bonjour Sleep Proxy Link-Local Multicast Name Resolution (LLMNR) Name Service Switch (NSS) Simple Service Discovery Protocol (SSDP)

References

External links Multicast DNS - information site maintained by mDNS designer, Stuart Cheshire LLMNR, Multicast DNS and names on your LAN

Worked examples

Example 1 — a first encounter with Multicast DNS

Start with the simplest possible case. Write down what Multicast DNS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Multicast DNS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Multicast DNS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Multicast DNS

In research
Multicast DNS appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Multicast DNS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Multicast DNS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Application layer protocols, Domain Name System, so understanding it makes those chapters shorter.
In everyday life
Look for Multicast DNS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Multicast DNS” →

How to study Multicast DNS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Multicast DNS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Multicast DNS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Multicast DNS in simple terms?

Multicast DNS (mDNS) is a computer networking protocol that resolves hostnames to IP addresses within small networks without the use of a local name server. It is a zero-configuration service, using essentially the same programming interfaces, packet formats and operating semantics as unicast Domai…

Why does Multicast DNS matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Multicast DNS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Multicast DNS.

Tags

  • Application layer protocols
  • Domain Name System

Keep exploring