Multicast DNS (mDNS)
  • is a protocol that allows devices on a local network to discover each other and resolve hostnames to IP addresses without the need for a traditional, centralized DNS server

OSI Model Stack Context

mDNS requires several layers to work in concert:

OSI Layer

Role in mDNS

Layer 7 Application

Formulates DNS queries and responses; handles service discovery logic

Layer 4 Transport

Uses UDP port 5353 for connectionless “fire-and-forget” communication

Layer 3 Network

Uses IP Multicast (224.0.0.251 for IPv4 or ff02::fb for IPv6) to reach all local hosts

Layer 2 Data Link

Uses multicast MAC addresses to deliver packets to nodes on the local broadcast domain