Definition
Multicast DNS (mDNS) resolves names on one local link without a central DNS server. DNS Service Discovery (DNS-SD) uses DNS records to describe and discover available services.
Intuition
Instead of asking a central directory, a laptop asks the local group, “Who is printer.local?” The device that owns the name can answer. Other listening devices may cache the reply.
Example
The lecture gives this exchange:
- A laptop sends an mDNS query for
printer.localto224.0.0.251, UDP port5353. - The printer replies with address
192.168.1.20, usually using multicast. - Other listening devices can cache the answer too.
Added distinction: finding the address for a known printer name is name resolution. Asking which printing services are available is service discovery through DNS-SD.
Important rules
- The IPv4 multicast destination is
224.0.0.251. - Names use
.local; UDP port5353carries mDNS messages. - A host probes a proposed name before announcing it, to detect a conflict.
- Replies are usually multicast; do not assume every reply must be.
224.0.0.251lies in the link-local224.0.0.0/24range; ordinary routers never forward it.- Large local networks may filter or proxy discovery traffic. A proxy is a separately configured mechanism.
Common mistakes
- Assuming
.localnames require a conventional central DNS server. - Assuming mDNS queries automatically reach another subnet or the Internet.
- Equating finding a device’s address with discovering all its services.
- Treating a cached reply as authentication of the replying device.
Related concepts
Source
Lecture 01f - IPv4 Multicast, PDF page 9. The distinction between name resolution and service discovery, proxy clarification, and authentication caveat are added study explanations.