Airprint in the enterprise internal SS subnets

Source: Internet
Author: User
Tags domain server subdomain

Press: this is a solution for iOS devices to print to a network printer inside the enterprise network. Because airprint uses bonjour as a network resource search, bonjour is generally not used inside the enterprise network, ashish Desai has found a way to enable enterprise users to use airprint for iOS, both wired and wireless networks. It needs to configure DNS, CUPS service, and iOS devices. The following is a detailed configuration description for your testing and appreciation.


From:

Airprint in the Enterprise License SS subnets [solution]

 

This is a message to help folks figure out how to setupAirprint across wired/wireless subnets. Hopefully it will help a few people.Airprint was designed to work with Bonjour on a local subnet/broadcast domain.To print in the enterprise where we have wired/wireless infrastructure, we need to use a DNS server to find the printer resourcesAssumptions:Our internal domain is: foocompany.comWe create a new subdomain: bonjour.foocompany.comCreating a new subdomain allows up to apply DNS views so we can show print/bonjour services inclose proximity of the user.You have a CUPS printer server (linux/apple) running at printserver.bonjour.foocompany.com1. Setup a DNS serverIf you setting up a test domain server, you can setup forwarding to your primary production server.This way all DNS queries continue to workIn your named.conf file setup forwardingoptions {forwarders { YOURTOPNAMESERVER_IPADDR; YOURTOPNAMESERVER_IPADDR2; };forward first;allow-query-cache { any; }; // Allow client queries from other subnet to query from cache};Create a new zone, "bonjour.foocompany.com"zone "bonjour.foocompany.com." { type master; file "/etc/bind/db.home"; };zone "foocompany.com" { type forward; forward only; forwarders { YOURTOPNAMESERVER_IPADDR; YOURTOPNAMESERVER_IPADDR2; }; };Create the following entries to support bonjour browsing#=======DNS====Begin======lb.dns-sd.udp IN PTR @b.dns-sd.udp IN PTR @dr.dns-sd.udp IN PTR @db.dns-sd.udp IN PTR @cf.dns-sd.udp IN PTR @printserver IN A 10.47.203.188# For every printer queue defined at the printer server you need to create a TXT and SRV entry# The visual printer name that show up in the iOS listbox will be the part before .ipp.tcp, example "hpv8a", "hpv8acolor"## _ipp and _printer seem to be equivalents, either seem to work on iOS.# Printer 1cups._sub._ipp.tcp IN PTR hpv8a.ipp.tcpuniversal._sub._ipp.tcp IN PTR hpv8a.ipp.tcp#Printer 2cups._sub._ipp.tcp IN PTR hpv8acolor.printer.tcpuniversal._sub._ipp.tcp IN PTR hpv8acolor.printer.tcphpv8a.ipp.tcp IN SRV 0 0 631 printserverhpv8acolor.printer.tcp IN SRV 0 0 631 printserver# The "adminurl" points to the printer queue url on the CUPS server# The "rp" key points to the queue name as wellhpv8a.ipp.tcp IN TXT ( "txtvers=1" "qtotl=1" "rp=printers/V8A08A246LJ" "adminurl=http://printserver:631/printers/V8A_08A246_LJ" "ty=HP Laserjet V8A" "product=(HP LaserJet 4200)" "transparent=t" "copies=t" "duplex=t" "color=f" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/urf" "URF=W8,SRGB24,CP1,RS600" )hpv8acolor.printer.tcp IN TXT ( "txtvers=1" "qtotl=1" "rp=printers/V8A08A246_ColorLJ" "adminurl=http://printserver:631/printers/V8A08A246_ColorLJ" "ty=HP Laserjet V8A Color" "product=(HP color LaserJet 4650)" "transparent=t" "copies=t" "duplex=t" "color=t" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg ,image/png,image/urf" "printer-type=0x801046" "URF=W8,SRGB24,CP1,RS600" )####Printer TEMPLATE#cups._sub._ipp.tcp IN PTR NAMEX.printer.tcp#universal._sub._ipp.tcp IN PTR NAMEX.printer.tcp#NAMEX.ipp.tcp IN SRV 0 0 631 PRINTSERVERDNSNAME#NAMEX.ipp.tcp IN TXT ( "txtvers=1" "qtotl=1" "rp=printers/QUEUENAME" # "adminurl=http://PRINTSERVERDNSNAME:631/printers/QUEUENAME" # "ty=Printer name" # "product=(Printer PPD model line)" "transparent=t" "copies=t" "duplex=t" "color=f" # "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg ,image/png,image/urf" # "URF=W8,SRGB24,CP1,RS600" )#=======DNS====End======2. Setup CUPSAdd printers to the CUPS server.Enable access to the printer queue from remote machines, GUI: "System->Admin->Printing->Server->Server Setting: Allow printing from the internet"Also make sure the following lines are present in /etc/cups/cupsd.conf# Allow remote accessPort 631Listen /var/run/cups/cups.sockAccessLog syslogAccessLogLevel allLogLevel debugMaxLogSize 0SystemGroup lpadmin# Enable printer sharing and shared printers.Browsing OnBrowseOrder allow,denyBrowseAllow allBrowseRemoteProtocols CUPSBrowseAddress @LOCALBrowseLocalProtocols CUPS dnssdBrowseProtocols allDefaultAuthType Basic3. Change iPAD configsAdd your DNS server as the first DNS server in the network settting page. Add "bonjour.foocompany.com" to the DNS domains to search4. Test printingOpen up Photos application.Select a pictureSelect "Send To->Print"Select "Printer", now a list of printer names should show up as defined in the DNS serverSelect a printer and hit "Print"Fast task switch to Print Center to verify print job is being sentThanksAshish DesaiSecurity ArchitectFidelity Investmentsemail: ashish.desai@fidelity.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.