Port 5353 is the mDNS (Multicast DNS) port for zero-configuration name resolution on local networks. mDNS resolves .local hostnames without a DNS server – Apple Bonjour, Linux Avahi, and Windows use it for printer discovery, AirPlay, and device naming. mDNS has no authentication and should never traverse network boundaries.
Port Number
5353
Protocol
UDP
Service
Multicast DNS
Range
IANA Registered (1024–49151)
Linux: browse all mDNS services on the local network
avahi-browse -a -tmacOS: browse all advertised service types
dns-sd -B _services._dns-sd._udp local.Capture mDNS traffic to see what's being advertised
tcpdump -i eth0 -n udp port 5353 -c 10Check if mDNS responder is running on Linux
systemctl status avahi-daemonavahi-browse -at
dns-sd -B _http._tcp local.
mdns-scan
dig @224.0.0.251 -p 5353 myhost.localmDNS (Multicast DNS) was standardized in RFC 6762 (2013) by Stuart Cheshire (Apple), building on Apple's Bonjour/Rendezvous technology from 2002. Port 5353/UDP with multicast address 224.0.0.251 was assigned. mDNS enables zero-configuration networking: devices automatically discover each other without a DNS server. It powers: AirPrint, AirPlay, Chromecast discovery, Spotify Connect, and most IoT device setup flows.
How do I disable mDNS on Linux servers?
systemctl disable --now avahi-daemon avahi-daemon.socket. If you need local hostname resolution without mDNS: use systemd-resolved with LLMNR only, or configure static /etc/hosts entries. Verify: ss -ulnp | grep 5353 should show nothing. For Docker hosts: containers may run their own mDNS – check with docker exec <container> ss -ulnp | grep 5353.
mDNS vs LLMNR vs DNS-SD?
mDNS (port 5353): Apple/Linux, resolves .local names, also does service discovery (via DNS-SD). LLMNR (port 5355): Microsoft, resolves flat names (no .local suffix), Windows-only in practice. DNS-SD: not a protocol itself but a specification (RFC 6763) for structuring service discovery records – runs OVER mDNS or unicast DNS. In practice: Apple uses mDNS, Windows uses LLMNR (and increasingly mDNS since Windows 10), Linux uses Avahi (mDNS).