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:

  1. A laptop sends an mDNS query for printer.local to 224.0.0.251, UDP port 5353.
  2. The printer replies with address 192.168.1.20, usually using multicast.
  3. 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 port 5353 carries 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.251 lies in the link-local 224.0.0.0/24 range; ordinary routers never forward it.
  • Large local networks may filter or proxy discovery traffic. A proxy is a separately configured mechanism.

Common mistakes

  • Assuming .local names 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.

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.