I have two printers advertised via avahi-daemon as AirPrint printers.
When avahi-daemon starts up, they're seen via the bonjour devices on the
network. (See log, below.)
After some time, usually within the hour, the bonjour devices can no
longer see the printers, but the local avahi-browser application thinks
they're still there, and there are no errors in any of the logs.
Restarting the daemon immediately makes the printers visible again.
$ avahi-daemon --debug
Found user 'avahi' (UID 495) and group 'avahi' (GID 488).
Successfully dropped root privileges.
avahi-daemon 0.6.27 starting up.
Successfully called chroot().
Successfully dropped remaining capabilities.
Loading service file /services/AirPrint-Marilyn_HP.service.
Loading service file /services/AirPrint-PSC-2200-Series.service.
Loading service file /services/ssh.service.
Loading service file /services/udisks.service.
Joining mDNS multicast group on interface wlan0.IPv4 with address
New relevant interface wlan0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for fe80::211:95ff:febc:e5f3 on wlan0.*.
Registering new address record for 192.168.123.10 on wlan0.IPv4.
Registering HINFO record with values 'I686'/'LINUX'.
Server startup complete. Host name is sds-desk.local. Local service
cookie is 2690789964.
Service "sds-desk" (/services/udisks.service) successfully established.
Service "sds-desk" (/services/ssh.service) successfully established.
Service "AirPlay PSC-2200-Series @ sds-desk"
(/services/AirPrint-PSC-2200-Series.service) successfully established.
Service "AirPlay Marilyn_HP @ sds-desk"
(/services/AirPrint-Marilyn_HP.service) successfully established
Here's one of the service files:
# cat /etc/avahi/services/AirPrint-PSC-2200-Series.service
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<name replace-wildcards="yes">AirPlay PSC-2200-Series @ %h</name>
<txt-record>note=Hewlett-Packard PSC 2200 Series</txt-record>
And the avahi-daemon.conf file
# grep -v '#' /etc/avahi/avahi-daemon.conf
Show replies by date