Disable printer discovery with dnssd

I’m trying to get printers to stop showing up with in the gnome print dialogue. I’m using cups-browsed to integrate remote printers from a particular server. I do not want avahi adding printers. The solution so far has been to disable avahi entirely.
I’m running openprinting cups 2.4.12

I’ve disabled anything related to browsing in

  1. cupsd.conf
  2. cups-browsed.conf

Here’s the beginning of my cupsdconfiguration

LogLevel warn
MaxLogSize 1m
ErrorPolicy stop-printer
Listen 631
Browsing Off
BrowseLocalProtocols none
DefaultAuthType Basic
WebInterface Yes
IdleExitTimeout 60

Here’s the beginning of my cups-browsed.conf

AllowResharingRemoteCUPSPrinters no
# added by post scriptlet
BrowseRemoteProtocols none
BrowseProtocols none
BrowseInterval 1200
BrowseTimeout 6000
BrowsePoll cups.ad.ptsd50.org
UpdateCUPSQueuesMaxPerCall 20
PauseBetweenCUPSQueueUpdates 5

BrowseFilter host mycupsserver
BrowseFilter name ^OFFICE

lpstat -v shows the right amount of printers, but when I go to print in gnome I’m bombarded with every single printer on the network. Many of which are garbage. I’d like to still have avahi but also

Apparently this is a known (and not yet fixed) issue. I expect there will be some future GNOME Settings feature to separate added printers from the auto-discovered ones, but that might take some time.

The workaround still seems to be to disable avahi alltogether.

1 Like

Thanks, it’s good to have confirmation I’ll accept this as the solution.

1 Like