Figured it out!
According to this:
I had to change the config files /etc/nsswitch.conf and /etc/mdns.allow
in nsswitch.conf the line: hosts: files mymachines mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns mdns4
had been commented so I uncommented it.
Then the /etc/mdns.allow
did not exist, so I created and and added .local. and .local
. Now cups works!
In the end my /etc/nsswitch.conf
looks like this:
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.
passwd: files mymachines systemd
group: files [SUCCESS=merge] mymachines systemd
shadow: files
publickey: files
hosts: files mymachines mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns mdns4 myhostname
# hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files
and my /etc/mdns.allow
looks like this:
.local.
.local
If anyone wants to make changes feel free to comment!