Multicast DNS (mDNS) is a protocol that resolves hostnames to IP addresses within small, local networks (LANs) without a dedicated DNS server, using the “.local” domain. It enables zero-configuration networking for devices to discover each other, commonly used for printer discovery, smart home devices (IoT), and Apple’s Bonjour (e.g., Apple TV, AirPlay). Reddit +2
Key Aspects of mDNS
- Local Scope: mDNS works on local subnets (TTL=1) and does not automatically cross VLANs or routers, though mDNS gateways can bridge this limitation.
- How it Works: Instead of a central server, devices directly ask other network participants about a hostname via multicast (UDP port 5353).
- Use Cases: Essential for smart home devices, IoT, smart TVs, and network printers to communicate seamlessly without manual IP configuration.
- Security & Limitations: While convenient, mDNS can be used to scan local services; it is frequently disabled or heavily restricted in corporate network environments, say Addigy.
- Technologies: Known implementations include Bonjour (Apple), Avahi (Linux), and native support in Windows 10/11. Ubiquiti Community +7
mDNS vs. Traditional DNS
DNS: Uses a central server to convert names to IP addresses.
- mDNS: Decentralized; each host maintains its own list and replies to relevant queries, as explained in this Reddit post and IONOS Reddit +1