Hi,
I can't get my network discovered printer to print. CUPS finds and adds
my printer easily with "Find New Printers" on the web interface. But
every job fails with:
```
Unable to locate printer "BRNBCF4D4182ECD.local".
```
While researching this problem I came across other people having trouble
with mDNS. But their solutions don't work for me, or are not relevant.
`nsswitch.conf` seems to be configured correctly:
```
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files systemd
group: files systemd
shadow: files systemd
gshadow: files systemd
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
```
`avahi-browse -rt _ipp._tcp` lists my printer:
```
+ wlp59s0 IPv6 Brother DCP-1610W series Internet
Printer local
+ wlp59s0 IPv4 Brother DCP-1610W series Internet
Printer local
= wlp59s0 IPv6 Brother DCP-1610W series Internet
Printer local
hostname = [BRNBCF4D4182ECD.local]
address = [192.168.1.12]
port = [631]
txt = ["UUID=e3248000-80ce-11db-8000-bcf4d4182ecd" "TBCP=F"
"Transparent=T" "Binary=T" "PaperCustom=T" "Scan=T" "Fax=F" "Duplex=F"
"Copies=T" "Color=F" "usb_CMD=PJL,HBP" "usb_MDL=DCP-1610W series"
"usb_MFG=Brother" "priority=50"
"adminurl=http://BRNBCF4D4182ECD.local./" "product=(Brother DCP-1610W
series)" "ty=Brother DCP-1610W series" "note=" "rp=ipp/print" "pdl="
"qtotal=1" "txtvers=1"]
= wlp59s0 IPv4 Brother DCP-1610W series Internet
Printer local
hostname = [BRNBCF4D4182ECD.local]
address = [192.168.1.12]
port = [631]
txt = ["UUID=e3248000-80ce-11db-8000-bcf4d4182ecd" "TBCP=F"
"Transparent=T" "Binary=T" "PaperCustom=T" "Scan=T" "Fax=F" "Duplex=F"
"Copies=T" "Color=F" "usb_CMD=PJL,HBP" "usb_MDL=DCP-1610W series"
"usb_MFG=Brother" "priority=50"
"adminurl=http://BRNBCF4D4182ECD.local./" "product=(Brother DCP-1610W
series)" "ty=Brother DCP-1610W series" "note=" "rp=ipp/print" "pdl="
"qtotal=1" "txtvers=1"]
```
`avahi-resolve -n BRNBCF4D4182ECD.local` returns the ip. `avahi-resolve
-a 192.168.1.12` returns the hostname. `ping` can't resolve
`BRNBCF4D4182ECD.local`, not sure if it's supposed to.
This is the log from `avahi-daemon --debug`:
```
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetAPIVersion
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetState
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceResolverNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceResolverNew
dbus-protocol.c: client :1.130 vanished.
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetAPIVersion
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetState
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=HostNameResolverNew
dbus-async-host-name-resolver.c:
interface=org.freedesktop.Avahi.HostNameResolver,
path=/Client15/HostNameResolver1, member=Free
dbus-protocol.c: client :1.133 vanished.
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetAPIVersion
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetState
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=HostNameResolverNew
sendmsg() to ff02::fb failed: Network is unreachable
sendmsg() to ff02::fb failed: Network is unreachable
sendmsg() to ff02::fb failed: Network is unreachable
dbus-async-host-name-resolver.c:
interface=org.freedesktop.Avahi.HostNameResolver,
path=/Client16/HostNameResolver1, member=Free
dbus-protocol.c: client :1.134 vanished.
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetAPIVersion
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetState
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=AddressResolverNew
dbus-async-address-resolver.c:
interface=org.freedesktop.Avahi.AddressResolver,
path=/Client17/AddressResolver1, member=Free
dbus-protocol.c: client :1.135 vanished.
```
I'm using Debian Trixie. The same printer has already worked on a
different install of Debian. Would appreciate help with this. Let me
know if any more info would be useful for troubleshooting. And thanks in
advance!