milahu / nixpkgs

Nix Packages collection
MIT License
1 stars 0 forks source link

cups "find new printers" function is broken for network printers #7

Open milahu opened 1 year ago

milahu commented 1 year ago

the cups "find new printers" functions tries to add network printers with dnssd addresses, but they dont work

dnssd://Brother%20HL-L5100DN%20series%20%5B30055cb7e60b%5D._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cb7e60b
dnssd://Brother%20HL-L5100DN%20series%20%5B3c2af4accce6%5D._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af4accce6

my network printers only work when i set the IP address, for example socket://192.168.178.134

ippfind

$ ippfind
ipp://BRN30055CB7E60B.local:631/ipp/print
ipp://BRN3C2AF4ACCCE6.local:631/ipp/print

$ ping BRN30055CB7E60B.local
ping: BRN30055CB7E60B.local: System error

$ ping BRN3C2AF4ACCCE6.local 
ping: BRN3C2AF4ACCCE6.local: System error

nmap

$ nmap -p 631 "192.168.178.*"

Nmap scan report for 192.168.178.134
Host is up (0.0014s latency).

PORT    STATE SERVICE
631/tcp open  ipp

Nmap scan report for 192.168.178.175
Host is up (0.017s latency).

PORT    STATE SERVICE
631/tcp open  ipp
$ ping -c1 192.168.178.134
PING 192.168.178.134 (192.168.178.134) 56(84) bytes of data.
64 bytes from 192.168.178.134: icmp_seq=1 ttl=255 time=2.54 ms

$ ping -c1 192.168.178.175
PING 192.168.178.175 (192.168.178.175) 56(84) bytes of data.
64 bytes from 192.168.178.175: icmp_seq=1 ttl=255 time=1.56 ms

resolv.conf

$ cat /etc/resolv.conf
# Generated by resolvconf
search lan
nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 192.168.178.1
options edns0

maybe the .local domain should be .lan? - no:

$ ping BRN30055CB7E60B.lan
ping: BRN30055CB7E60B.lan: Name or service not known

keywords: DNS, LAN

related issues