Summary

  • RFC 6762, February 2013, Standards Track, defines Multicast DNS: DNS-like operations on the local link "in the absence of any conventional Unicast DNS server".
  • It also designates part of the namespace: "Multicast DNS designates a portion of the DNS namespace to be free for local use, without the need to pay any annual fee, and without the need to set up delegations or otherwise configure a conventional DNS server to answer for those names".
  • The stated benefits are (i) "little or no administration or configuration", (ii) they work when no infrastructure is present, and (iii) they work during infrastructure failures. Names take the form "single-dns-label.local.", and any query ending in .local must go to the multicast address on UDP port 5353 rather than to a unicast resolver.

A corner of the namespace with no registry

Every other name on the internet is granted. A registrar, a registry or a network administrator decides that a name belongs to you, and the decision is recorded somewhere you can point at.

.local has none of that. A machine picks a label, appends the reserved suffix, and starts answering for it. There is no fee, no delegation, no annual renewal and, crucially, no party whose absence would break the machine.

Claiming a name by asking whether anyone objects

The protocol does not let a host simply assert a name. On startup a host probes: it sends queries for the name it wants, and if nobody answers, the name is free and the host announces it.

That is a naming ceremony made of silence. Consent is assumed when no objection arrives within the probing window, which is the only practical procedure when there is no authority to consent.

When two machines want the same name

Conflicts still happen, and the specification handles them by ranking rather than by lottery. If two hosts own the same name, the rules decide which one must yield, and the losing host has to pick a different label and defend that instead.

The result is a namespace where collisions are expected and resolved locally, without anyone being told they cannot have a name. The cost is that names are stable only while everyone behaves.

Why multicast instead of a small server

The design choice that makes it robust is the absence of a server. A small designated machine would be easier to reason about and would stop working exactly when it matters: when the network is partially broken, when nothing has been configured, when two laptops meet on a cable with no infrastructure at all.

Multicast also explains the scope rule. A name ending in .local is defined as link-local, and queries for it must be sent to the multicast address, so the name means one thing on one link rather than a global claim.

What this costs and buys

The cost is a fragmented namespace. Two different links can have two different machines called printer.local, and both are correct. Caching is short, traffic is local, and a name is not an identity.

The benefit is that naming stops depending on infrastructure. A device with no configuration can be reachable by name within seconds, which is the property that made the mechanism disappear into ordinary use.