Avahi Won’t Advertise Your Printer on Linux — What’s Missing in Your Service File
Joe B.
Reviewed for technical accuracy
Specialities: Linux (Ubuntu/Debian/Fedora/Arch/RHEL), CUPS, Avahi/mDNS, AirPrint & IPP Everywhere, Networking, Office Equipment
Avahi mDNS printer not showing up on Linux — fix AirPrint/IPP advertising via service file & publish options
Quick answer: the accepted fix
Accepted fix when Avahi is not advertising a printer (Linux): create/repair the AirPrint/IPP Avahi .service file in /etc/avahi/services, enable publish-user-services and correct allow-interfaces in avahi-daemon.conf, open UDP 5353 in the firewall, and set BrowseLocalProtocols dnssd in cupsd.conf. Verify with avahi-browse and dns-sd.
Avahi service file examples for AirPrint / IPP Everywhere
Use _ipp._tcp and optionally _ipps._tcp with TXT keys rp, URF, UUID, Color, Duplex, txtvers, and qtotal. An incorrect queue path or missing URF values often explains “Bonjour printer not showing”. Keep Ghostscript / cups-filters updated for IPP Everywhere.
How to verify mDNS discovery works
From the server: avahi-browse -a -t. From a Mac: dns-sd -B _ipp._tcp. Then print a test page via http://server:631. If discovery fails after a reboot, check allow-interfaces, publish-workstation, and systemd-resolved mDNS settings.
Avahi advertising — troubleshooting tips
Most discovery issues come from a broken service XML, disabled publish settings, blocked UDP 5353, or CUPS not using dnssd.
Quick path: confirm Avahi is running → fix the .service file → enable publish-user-services / allow-interfaces → open firewall → enable CUPS dnssd → verify with avahi-browse/dns-sd.
Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.
Getting Started Is Easy
Ask for help, 24/7
Members enjoy round-the-clock access to 12,000+ verified Experts, including tech support, mechanics, vets, and more.
Expert will respond in minutes
We match you with an Expert who specializes in your situation. Talk, text, or chat — whichever you prefer.
Save time & money
No scheduling hassles or expensive consults. Membership can save you significant time and money each month.
FAQ
Why is Avahi not advertising my printer on Linux?
Common causes: broken Avahi .service file, disabled publish-user-services, wrong allow-interfaces, blocked UDP 5353, or CUPS not using dnssd. Fix the XML, enable publish options, open the firewall, and restart Avahi/CUPS.
How do I create an AirPrint service file for Avahi?
Place XML in /etc/avahi/services/airprint.service advertising _ipp._tcp/_ipps._tcp with TXT keys including rp, URF, ty, and adminurl. Ensure rp matches your CUPS queue path.
mDNS works sometimes, then stops — what now?
Pin interfaces with allow-interfaces, avoid Docker bridges, and keep systemd-resolved mDNS enabled. Check logs via journalctl -u avahi-daemon for duplicate service names or network changes.
Do I still need CUPS broadcasting if I use a custom Avahi file?
For best compatibility, enable BrowseLocalProtocols dnssd so CUPS updates records when queues change. A static XML works, but dnssd reflects status automatically.
What about Windows clients?
Windows 10/11 can add IPP Everywhere printers via Settings → Printers. Ensure DNS-SD is visible and the server allows IPP/IPP over TLS (IPP, IPPS).
| Symptom | Likely cause | Quick fix |
|---|---|---|
| Printer not visible in AirPrint | Missing/wrong .service XML; CUPS not using dnssd | Create correct airprint.service; set BrowseLocalProtocols dnssd |
| Shows on server, not on clients | Firewall blocks mDNS 5353; VLAN isolation | Allow UDP 5353; use mDNS reflector or same subnet |
| Wrong printer name/metadata | TXT keys/Avahi name mismatch | Set name, ty, note, and correct rp path |
| Works until reboot | Interfaces change; Docker bridge preferred | Pin allow-interfaces; deny docker0; restart Avahi |
Step‑by‑step (Linux/Avahi + CUPS)
- Install/enable avahi-daemon and cups; open UDP 5353.
- Create/validate
/etc/avahi/services/airprint.servicefor _ipp._tcp (and _ipps._tcp) with correct TXT keys andrp. - Edit
/etc/avahi/avahi-daemon.conf: enable publish-user-services, set allow-interfaces, keep enable-dbus. - In
/etc/cups/cupsd.confset BrowseLocalProtocols dnssd; restart CUPS and Avahi. - Verify with
avahi-browse -a -tanddns-sd -B _ipp._tcpfrom a client; add the printer via IPP Everywhere/AirPrint.
Sources
- CUPS — DNS-SD (dnssd) and IPP Everywhere
- Avahi — Configuration & Service Files
- Arch Wiki — Avahi
- Ubuntu — avahi-daemon
- Apple — AirPrint basics
Filed under: Printer won’t print
Related articles
- Your Printer Won't Accept the Right Wi-Fi Password — What's Actually Causing It
- Printer won’t connect to my password-protected Wi-Fi — what changed?
- Printer won’t connect to secure Wi-Fi (WPA2/WPA3) — what do I check first?
- My printer won’t connect to my home Wi-Fi — what do I check first?
- Printer won’t print after I changed Wi-Fi — what should I check first?
- Printer won’t print after I installed a new router — what do I check first?
- Printer won’t reconnect after I replaced my router — what do I check first?
- My printer won’t connect to Wi-Fi — I don’t know what I changed