01 Overview
mDNS (Multicast DNS) lets a device be discovered on the local network by hostname and service type, without typing an IP address.
It solves the problem of changing IPs: as long as the device is on the same Wi-Fi, a computer or phone can reach it via a name like `my-esp32.local`.
Typical uses: local web configuration pages, quick connection during development, and automatic discovery in smart home setups.
mDNS works only within the same broadcast domain — not across the public internet or VLANs.
It is not a replacement for provisioning; it is a post-provisioning discovery mechanism. Provisioning usually needs a separate path (SoftAP or BLE).
In industrial or enterprise networks, multicast may be blocked, so mDNS can fail — always keep an IP fallback.