The Chatty Network Broadcaster
The avahi-daemon is the Ubuntu/Linux implementation of the mDNS (Multicast DNS) and DNS-SD (Service Discovery) protocols, functioning exactly like Apple’s Bonjour service. It constantly broadcasts the presence of your machine and its available services (like SSH, file sharing, or printers) to the local network using the .local domain. It allows machines to find each other without needing a dedicated DNS server.
While this is highly useful for desktop environments (for finding network printers or casting to smart TVs), it is generally undesirable on a standalone, public-facing, or rigidly managed server. On a server, you typically rely on static IP addresses or a proper DNS infrastructure (like bind9 or Active Directory). Leaving Avahi running generates unnecessary multicast traffic on the subnet and unnecessarily advertises your server’s existence. If you don’t rely on .local name resolution, you should turn it off.
How to Stop and Disable Avahi-Daemon
You can manage this service using standard systemctl commands.
- Open your Ubuntu Terminal or connect via SSH.
- Stop the daemon immediately:
sudo systemctl stop avahi-daemon.service
- Stop the associated socket to prevent it from being activated on demand:
sudo systemctl stop avahi-daemon.socket
- Disable both the service and the socket so they do not load on boot:
sudo systemctl disable avahi-daemon.service avahi-daemon.socket
- (Optional but recommended for strict servers) Mask the service to prevent any other package from accidentally starting it:
sudo systemctl mask avahi-daemon.service
Your server will no longer broadcast mDNS packets across your local network.