Trying to set up a network printer with CUPS.
Followed online documentation that stated:
To discover or share printers using DNS-SD/mDNS, setup .local hostname resolution with Avahi and restart cups.service.
Followed directions for setting up Avahi to the point where avahi-browse --all --ignore-local --resolve --terminate
and avahi-resolve-host-name my-domain.local
are both working.
But getent hosts my-domain.local
fails to resolve. This results in CUPS failing to print because it can't find my-printer.local.
I read the mdns Github page and saw a note that made me think I didn't need a
/etc/mdns.allow
file.But then I saw the last note in that section:
I tested that out on my machine and sure enough, I was getting something OTHER than
Host local not found...
.Adding a
/etc/mdns.allow
file with a line for.local.
and for.local
and now I can pingmy-printer.local
.