olbat / dockerfiles

A collection of Dockerfiles
https://hub.docker.com/u/olbat/
GNU General Public License v3.0
134 stars 73 forks source link

Cannot resolve *.local hostname from docker #58

Closed Antamokhin closed 2 years ago

Antamokhin commented 3 years ago

I successfully run CUPS container, add printer. But I'm faced with problem that CUPS cannot resolve .local hostname of printer when I print test page. I'm not so confident in mDNS, avahi, etc. I will be very appreciate for any advice. It works perfectly when i just start CUPS on host without docker

olbat commented 2 years ago

This is related to how hostnames are being resolved on your host machine. My guess is that you have some custom entries in a file like /etc/hosts that allows you to specify overwrites for DNS clients.

In that case I would advise you to use the --add-host option to add your custom entries to the container's /etc/hosts file.