[Dnsmasq-discuss] Setting up a printer
Mauricio Tavares
raubvogel at gmail.com
Thu Dec 20 06:11:40 GMT 2012
Could anyone point me out of to a how-to on setting a printer using
dnsmasq? Best I found was
http://wiki.openwrt.org/doc/howto/p910nd.server#with.dnsmasq, which
after following I feel like I am missing something.
So, I have a Brother HL 2140, which is setup to be connected using port
9100/tcp. From reading that page, I take that means I want to have
_pdl-datastream instead of _printer or _ipp (port 631). FQDN I had
defined for this printer is printer1.in.domain.com.
Now, ubuntu recognizes it as Brother HL-2140 Foomatic/hpijs-pcl5e
Based on that linke, my dnsmasq.conf would have lines like this:
# Services
ptr-record=_services._dns-sd._udp.in.domain.com,_pdl-datastream._tcp.in.domain
#printer
ptr-record=_pdl-datastream._tcp.in.domain.com,Brother-HL-2140._pdl-datastream._tcp.in.domain.com
srv-host=Brother-HL-2140._pdl-datastream._tcp.in.domain.com,Brother-HL-2140.in.domain.com,9100
txt-record=Brother-HL-2140._pdl-datastream._tcp.in.domain.com,ty=Brother
HL 2140,note=Basement,product=(Brother HL
2140),usb_MFG=Brother,usb_MDL=Brother HL
2140,txtvers=1,qtotal=1,priority=20,Color=F,pdl=application/vnd.hp-PCL
A few questions:
1) Where do I define the hostname (printer1 in my example) and where
does the printer name (Brother-HL-2140) go? Shouldn't the svc-host line
look like
srv-host=Brother-HL-2140._pdl-datastream._tcp.in.domain.com,printer1.in.domain.com,9100
But that does not seem to look like the examples in
http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example, where
the srv-host line seems to start with the service name.
2) I am really punting on the "usb_MFG=Brother,usb_MDL=Brother HL
2140,txtvers=1,qtotal=1,priority=20,Color=F,pdl=application/vnd.hp-PCL"
line. For instance, I do not know how to figure out the printer
properties, including the pdl. Any suggestions of where to get such info?
More information about the Dnsmasq-discuss
mailing list