Configuring DNS servers

The following instructions are verified using BIND version 9.

You can manually configure a Microsoft DNS server or a BIND for Windows DNS server to do the following:

This section provides information on how to add the DNS role, create a zone or domain, and add the required subdomains and appropriate resource records (TXT/PTR/SRV).

This section provides information on the most common configurations for an enterprise environment and is intended for network administrators. For information on other configurations, contact the Lexmark Professional Services team.

Configuring DNS servers for AirPrint advertisement

Adding a DNS role

Note:  Make sure that the server is configured with a static IP address.
For Windows Server 2012
  1. From the Windows Administrative Tools window, click Server Manager .

  2. Click Manage > Add Roles and Features > Next .

  3. For the installation type, select Role-based or feature-based installation , and then click Next .

  4. Click Select a server from the server pool , and then select the appropriate server.

  5. Select DNS Server > Add Features > Next .

  6. Click Install .

For Windows Server 2008
  1. From the Windows Administrative Tools window, click Server Manager .

  2. Click Roles > Add Roles > Next .

  3. Select DNS Server > Next .

  4. Click Install .

Creating a lookup zone

Adding a forward lookup zone

Note:  Make sure that you have the domain name and IP address of your DNS server.
  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, right-click Forward Lookup Zones , and then click New Zone > Next .

  3. For the zone type, select Primary zone , and then click Next .

  4. Specify the name of your domain, and then click Next .

  5. Click Create a new file with this file name , and then click Next .

  6. Select Do not allow dynamic updates > Next .

    Note:  Allow dynamic updates only when adding the new zone to a parent DNS server or when the new server installation is the only network DNS server. For more information on your environment, contact your system administrator.
  7. Click Finish .

Adding a reverse lookup zone

Notes:

  1. From the primary DNS server, navigate to the Windows Administrative Tools window, and then click DNS .

    Note:  The primary DNS server is the parent DNS server of your organization or the new DNS server that you are installing.
  2. Expand the host name of your server, right-click Reverse Lookup Zones , and then click New Zone > Next .

  3. For the zone type, select Primary zone , and then click Next .

  4. Select IPv4 Reverse Lookup , and then click Next .

  5. Enter the first three octets of the IP address of your DNS server, and then click Next .

  6. Click Create a new file with this file name , and then click Next .

  7. Select Do not allow dynamic updates > Next .

    Note:  Allow dynamic updates only when adding the new zone to a parent DNS server or when the new server installation is the only network DNS server. For more information on your environment, contact your system administrator.
  8. Click Finish .

Adding a host A record

Note:  This process is optional. Add a host A record only when your network does not have a parent DNS server that manages the host records for clients on your network. You can also add a host A record when your organization does not allow dynamic updates to occur on the parent DNS server.
  1. From the primary DNS server, navigate to the Windows Administrative Tools window, and then click DNS .

    Note:  The primary DNS server is the parent DNS server of your organization or the new DNS server that you are installing.
  2. Expand the host name of your server, right-click the domain that is created in the forward lookup zone, and then click New Host (A) > Next .

  3. Specify the host name and IP address of the LPM server.

    Note:  In an enterprise system, make sure that the LPM server is performing a load balancer role and that its IP address is static.
  4. Select Create associated pointer (PTR) record > Add Host .

Other considerations

Host A records in the forward and reverse lookup zones are created automatically in the following scenarios:

When creating host A records in a zone or subdomain, specify only the host name of the server, and not the fully qualified domain name.

Adding a Canonical Name (CNAME) record

Note:  This process is optional. Add a CNAME record only when you have the DNS entries of an existing server and you want to use lpm-airprint as an alias for the server.
  1. From the primary DNS server, navigate to the Windows Administrative Tools window, and then click DNS .

    Note:  The primary DNS server is the parent DNS server of your organization or the new DNS server that you are installing.
  2. Expand the host name of your server, right-click the domain that is created in the forward lookup zone, and then click New Alias (CNAME) > Next .

  3. Specify the alias name and the fully qualified domain name of the server.

  4. Click OK .

Configuring subdomains and resource records

Service records combine service types and transport protocols to form a registration type that creates resource records. Registration types are prefixed with an underscore (_) to differentiate them from domain names. To advertise your AirPrint service, create subdomains in the following order:

  1. _tcp

  2. _ipp

  3. _sub

Adding an _tcp subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, right-click the domain that is created in the forward lookup zone, and then click New Domain .

  3. In the New DNS Domain dialog box, type _tcp .

  4. Click OK .

Adding an _ipp subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, right-click the _tcp subdomain following the forward lookup zone, and then click New Domain .

  3. In the New DNS Domain dialog box, type _ipp .

  4. Click OK .

Adding an _sub subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.

  3. Right-click the _ipp subdomain, and then click New Domain .

  4. In the New DNS Domain dialog box, type _sub .

  5. Click OK .

Adding the _universal PTR record

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, and then expand the _tcp and _ipp subdomains following the forward lookup zone.

  3. Right-click the _sub subdomain, and then click Other New Records .

  4. In the Resource Record Type dialog box, select Pointer (PTR) , and then click Create Record .

  5. In the Host IP Address field, type _universal .

  6. In the Host name field, type the host name in the following format:

    hostname ._ipp._tcp. domain .com

    Where:

    • hostname is the host name of the server used when creating the host A record.

      Note:  Use the correct server host name in the PTR record for the _sub domain and the PTR, SRV, and TXT records for the _ipp domain.
    • domain is the domain name of your organization.

  7. Click OK .

Adding the PTR, SRV, and TXT records

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.

  3. Right-click the _ipp subdomain, and then click Other New Records .

  4. In the Resource Record Type dialog box, do any of the following:

    For PTR
    1. Select Pointer (PTR) , and then click Create Record

    2. Leave the Host IP Address field blank.

    3. In the Host name field, type the host name in the following format:

      hostname ._ipp._tcp. domain .com

      Where:

      • hostname is the host name of the server used when creating the host A record.

        Note:  Use the correct server host name in the PTR record for the _sub domain and the PTR, SRV, and TXT records for the _ipp domain.
      • domain is the domain name of your organization.

    For SRV
    1. Select Service Location (SRV) , and then click Create Record

    2. In the Service field, type the host name of the server.

    3. In the Protocol field, type _ipp .

    4. Make sure that the Priority and Weight fields are set to 0 .

    5. In the Port number field, enter 631 .

    6. In the Host offering this service field, type the fully qualified domain name of the LPM server.

    For TXT
    1. Select Text (TXT) , and then click Create Record

    2. In the Record name field, type the host name of the server.

    3. In the Text section, specify the correct key and value pairs.

      Sample key and value pairs (_ipp subdomain)
      txtvers=1
      qtotal=1
      product=(Lexmark Print server version 1.0)
      note=Physical location to advertise
      pdl=image/urf,application/pdf,image/jpeg,application/octet-stream
      adminurl=http://SERVERIPADDRESS:9780/lpm/config
      priority=0
      rp=lpm/ipp/print
      URF=V1.4,CP1,PQ3-4-5,RS300-600,MT1-2-3-4-5-6-8-10-11-12-13,W8,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,IS1,IFU0,OB10
      Color=T
      Duplex=T
      Scan=F
      Fax=F
      Binary=T
      Transparent=T
      Copies=T
      Collate=T
      ty=Lexmark Print server version 1.0
      UUID=b15525c7-8885-4279-a0a2-2ec669b9fbaa
      TLS=1.2
      kind=document
      PaperMax=<legal-A4
      air=none
      Note:  The key and value pairs from the DNS Record window on the configuration portal of your server ( http:// serverIPaddress :9780/lpm/config ) apply to the _ipp and _ipps subdomains. However, the value for the air= key must be none , and the printer-type= key and value pair must be omitted from the _ipp TXT record.
  5. Click OK .

Adding an _ipps subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, right-click the _tcp subdomain following the forward lookup zone, and then click New Domain .

  3. In the New DNS Domain dialog box, type _ipps .

  4. Click OK .

Adding an _sub subdomain for _ipps subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.

  3. Right-click the _ipps subdomain, and then click New Domain .

  4. In the New DNS Domain dialog box, type _sub .

  5. Click OK .

Adding the _universal PTR record for _sub subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, and then expand the _tcp and _ipps subdomains following the forward lookup zone.

  3. Right-click the _sub subdomain, and then click Other New Records .

  4. In the Resource Record Type dialog box, select Pointer (PTR) , and then click Create Record .

  5. In the Host IP Address field, type _universal .

  6. In the Host name field, type the host name in the following format:

    hostname ._ipps._tcp. domain .com

    Where:

    • hostname is the host name of the server used when creating the host A record.

      Note:  Use the correct server host name in the PTR record for the _sub domain and the PTR, SRV, and TXT records for the _ipps domain.
    • domain is the domain name of your organization.

  7. Click OK .

Adding the PTR, SRV, and TXT records for _ipps subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.

  3. Right-click the _ipps subdomain, and then click Other New Records .

  4. In the Resource Record Type dialog box, do any of the following:

    For PTR
    1. Select Pointer (PTR) , and then click Create Record

    2. Leave the Host IP Address field blank.

    3. In the Host name field, type the host name in the following format:

      hostname ._ipps._tcp. domain .com

      Where:

      • hostname is the host name of the server used when creating the host A record.

        Note:  Use the correct server host name in the PTR record for the _sub domain and the PTR, SRV, and TXT records for the _ipps domain.
      • domain is the domain name of your organization.

    For SRV
    1. Select Service Location (SRV) , and then click Create Record

    2. In the Service field, type the host name of the server.

    3. In the Protocol field, type _ipps .

    4. Make sure that the Priority and Weight fields are set to 0 .

    5. In the Port number field, enter 443 .

    6. In the Host offering this service field, type the fully qualified domain name of the LPM server.

    For TXT
    1. Select Text (TXT) , and then click Create Record

    2. In the Record name field, type the host name of the server.

    3. In the Text section, specify the correct key and value pairs.

      Sample key and value pairs (_ipp subdomain)
      txtvers=1
      qtotal=1
      product=(Lexmark Print server version 1.0)
      note=Physical location to advertise
      pdl=image/urf,application/pdf,image/jpeg,application/octet-stream
      adminurl=http://SERVERIPADDRESS:9780/lpm/config
      priority=0
      rp=lpm/ipp/print
      URF=V1.4,CP1,PQ3-4-5,RS300-600,MT1-2-3-4-5-6-8-10-11-12-13,W8,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,IS1,IFU0,OB10
      Color=T
      Duplex=T
      Scan=F
      Fax=F
      Binary=T
      Transparent=T
      Copies=T
      Collate=T
      ty=Lexmark Print server version 1.0
      UUID=b15525c7-8885-4279-a0a2-2ec669b9fbaa
      TLS=1.2
      kind=document
      PaperMax=<legal-A4
      air=username,password
      printer-type=0x4C0901C 
      Note:  The key and value pairs from the DNS Record window on the configuration portal of your server ( http:// serverIPaddress :9780/lpm/config ) apply to the _ipp and _ipps subdomains. However, the value for the air= key must be username,password , and the printer-type= key and value pair must be added in the _ipps TXT record.
  5. Click OK .

Adding an _udp subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, right-click the domain that is created in the forward lookup zone, and then click New Domain .

  3. In the New DNS Domain dialog box, type _udp .

  4. Click OK .

Adding an _udp-sd subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, right-click the _udp subdomain following the forward lookup zone, and then click New Domain .

  3. In the New DNS Domain dialog box, type _dns-sd .

  4. Click OK .

Adding the _services, b, and lb PTR records for _dns-sd subdomain

  1. From the Windows Administrative Tools window, click DNS .

  2. Expand the host name of your server, and then expand the _udp subdomain following the forward lookup zone.

  3. Right-click the _dns-sd subdomain, and then click Other New Records .

  4. In the Resource Record Type dialog box, do any of the following:

    For _ipp
    1. Select Pointer (PTR) , and then click Create Record

    2. In the Host IP Address field, type _services .

    3. In the Host name field, type _ipp._tcp. domain .com , where domain is the domain name of your organization.

    For _ipps
    1. Select Pointer (PTR) , and then click Create Record

    2. In the Host IP Address field, type _services .

    3. In the Host name field, type _ipps._tcp. domain .com , where domain is the domain name of your organization.

    For b and lb
    1. Select Pointer (PTR) , and then click Create Record

    2. In the Host IP Address field, type b or lb , respectively.

    3. In the Host name field, type the domain name of your organization.

  5. Click OK .

Setting up a DNS forwarder

In network environments where primary or secondary DNS servers are installed, create a forwarder to the new DNS server. The new DNS server must be where the resource records for AirPrint advertisement and services discovery are maintained. The forwarder lets AirPrint devices locate the LPM server without adding the records required for AirPrint advertisement to the existing DNS servers. It is not necessary to update the IP address of the primary and secondary DNS servers on the client devices or computers.

Note:  Setting up a DNS forwarder is not necessary when adding the resource records to a parent DNS server. It is also not necessary when the new server installation is the only network DNS server. For more information on your environment, contact your system administrator.
  1. From the primary or secondary DNS server, navigate to the Windows Administrative Tools window, and then click DNS .

    Note:  The primary DNS server is the parent DNS server of your organization or the new DNS server that you are installing.
  2. Right-click the host name of your server, and then click Properties .

  3. From the Forwarders tab, click Edit .

  4. In the Selected domain's forwarder IP address list field, specify the IP address of your new server installation.

  5. Click Add .

Configuring BIND

  1. From Windows Explorer, navigate to the BIND installation folder, and then open the etc folder.

  2. Open the named.conf file, and then add the following line:

    options { forwarders { DNSserver ; }; forward only; };

    Where DNSserver is the IP address of the DNS server that contains the appropriate AirPrint resource records.

  3. Save the file.

Delegating a domain

In network environments where primary or secondary DNS servers are installed, create a delegation map for the new domain to the new DNS server. The new DNS server must be where the resource records for AirPrint advertisement and services discovery are maintained. Delegation mapping lets AirPrint devices locate the LPM server without adding the records required for AirPrint advertisement to the existing DNS servers. Make sure that the IP address of the new DNS server is added to the list of DNS servers on the client devices or computers.

Note:  Setting up a delegation is not necessary when adding the resource records to a parent DNS server. It is also not necessary when the new server installation is the only network DNS server. For more information on your environment, contact your system administrator.
  1. From the primary or secondary DNS server, navigate to the Windows Administrative Tools window, and then click DNS .

    Note:  The primary DNS server is the parent DNS server of your organization or the new DNS server that you are installing.
  2. Right-click the zone or domain where you want to create a delegation, and then click New Delegation > Next .

  3. Specify the name of the subdomain to delegate, and then click Next > Add .

  4. Specify the IP address of the DNS server that contains the appropriate AirPrint resource records for the subdomain, and then click Ok .

  5. Click Finish .

Configuring BIND for AirPrint advertisement

Note:  Make sure that the server is configured with a static IP address, and that you have installed BIND.

Creating key files

  1. From the command prompt, navigate to the BIND installation folder. For example, cd C:\dns .

  2. Switch to the bin directory. For example, cd bin .

  3. Type rndc-confgen -a , and then press Enter .

  4. Type rndc-confgen >..\etc\rndc.conf , and then press Enter .

Creating named.conf files

  1. From the command prompt, navigate to the BIND installation folder. For example, cd C:\dns .

  2. Switch to the etc directory. For example, cd etc .

  3. Type start notepad named.conf , and then press Enter .

  4. When prompted to create a file, click Yes .

  5. At the top of the file, type options { directory dir-install ; }; , where dir-install is the BIND installation directory, and then press Enter .

  6. From Windows Explorer, navigate to the BIND installation folder, and then open the etc folder.

  7. Open the rndc.conf file, and then copy the text following the # Use with the following named.conf.. line.

  8. Open the named.conf file, and then paste the text after the options {directory... line.

  9. Remove # from all lines except the Use with the following... and End of named.conf lines.

  10. Click File > Exit > Save .

Creating zone files

Creating forward lookup zone files

Note:  Make sure that you have the domain name and IP address of your DNS server.
  1. From the command prompt, navigate to the BIND installation folder. For example, cd C:\dns .

  2. Switch to the etc directory. For example, cd etc .

  3. Type start notepad db. domain , where domain is the domain name of your server, and then press Enter .

  4. When prompted to create a file, click Yes .

  5. In the new zone file, add the following in bold :

    $TTL 3600
    @ IN SOA lpm-airprint.domain.com. unused-email (1 10800 3600 604800 60)
    @ IN NS lpm-airprint.domain.com.
    lpm-airprint.domain.com. IN A 192.168.1.10
    b._dns-sd._udp IN PTR @
    lb._dns-sd._udp IN PTR @
    _services.dns-sd._udp IN PTR _ipp._tcp.domain.com.
    _services.dns-sd._udp IN PTR _ipps._tcp.domain.com.
    _universal._sub._ipp._tcp IN PTR lpm-airprint._ipp._tcp.domain.com.
    _universal._sub._ipps._tcp IN PTR lpm-airprint._ipps._tcp.domain.com.
    
    _ipp._tcp IN PTR lpm-airprint._ipp._tcp.domain.com.
    lpm-airprint._ipp._tcp IN SRV 0 0 631 lpm-airprint.domain.com.
    lpm-airprint._ipp._tcp IN TXT "txtvers=1""qtotal=1""product=Lexmark Print server version 1.0""note=Physical location to advertise""pdl=image/urf,application/pdf,image/jpeg,application/octet-stream""adminurl=http://SERVERIPADDRESS:9780/lpm/config""priority=0""rp=lpm/ipp/print""URF=V1.4,CP1,PQ3-4-5,RS300-600,MT1-2-3-4-5-6-8-10-11-12-13,W8,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,IS1,IFU0,OB10""Color=T""Duplex=T""Scan=F""Fax=F""Binary=T""Transparent=T""Copies=T""Collate=T""ty=Lexmark Print server version 1.0""UUID=b15525c7-8885-4279-a0a2-2ec669b9fbaa""TLS=1.2""kind=document""PaperMax=<legal-A4""air=none"
    
    _ipps._tcp IN PTR lpm-airprint._ipps._tcp.domain.com.
    lpm-airprint._ipps._tcp IN SRV 0 0 443 lpm-airprint.domain.com.
    lpm-airprint._ipp._tcp IN TXT "txtvers=1""qtotal=1""product=Lexmark Print server version 1.0""note=Physical location to advertise""pdl=image/urf,application/pdf,image/jpeg,application/octet-stream""adminurl=http://SERVERIPADDRESS:9780/lpm/config""priority=0""rp=lpm/ipp/print""URF=V1.4,CP1,PQ3-4-5,RS300-600,MT1-2-3-4-5-6-8-10-11-12-13,W8,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,IS1,IFU0,OB10""Color=T""Duplex=T""Scan=F""Fax=F""Binary=T""Transparent=T""Copies=T""Collate=T""ty=Lexmark Print server version 1.0""UUID=b15525c7-8885-4279-a0a2-2ec669b9fbaa""TLS=1.2""kind=document""PaperMax=<legal-A4""air=username,password""printer-type=0x4C0901C"

    Where:

    • lpm-airprint.domain.com is the fully qualified domain name of your server.

    • 192.168.1.10 is the IP address of your server.

    • lpm-airprint is the host name of your server.

    Note:  The key and value pairs are listed in the DNS Record window on the configuration portal of your server ( http:// serverIPaddress :9780/lpm/config ). Make sure that the extra parenthesis for the product= key and value pairs are removed.
  6. Save the file.

Creating reverse lookup zone files

Note:  Make sure that you have the domain name and IP address of your DNS server.
  1. From the command prompt, navigate to the BIND installation folder. For example, cd C:\dns .

  2. Switch to the etc directory. For example, cd etc .

  3. Type start notepad db. domain .in-addr.arpa , where domain is the first three octets of the IP address of your server in reverse order, and then press Enter .

  4. When prompted to create a file, click Yes .

  5. In the new zone file, add the following:

    $TTL 3600
    @ IN SOA lpm-airprint.domain.com. unused-email (1 10800 3600 604800 60)
    @ IN NS lpm-airprint.domain.com.
    20 IN PTR lpm-airprint.domain.com.

    Where:

    • lpm-airprint.domain.com is the fully qualified domain name of your server.

    • 20 is the last octet of the IP address of your server.

    Notes:

    • If there are duplicate AirPrint advertisements on the client devices when using BIND on Linux or Unix in the db.domain file, remove the _universal._sub._ipp._tcp IN PTR lpm-airprint._ipp._tcp.domain.com line.
    • If character limitations occur when using GUI tools to add DNS records to a BIND server, reduce the key and value pairs to air= , pdl= , qtotal= , rp= , tls= , and urf= .
    • If there are Mac OS X 10.10 or later client workstations on the network, then add the Color= and Duplex= key and value pairs. Starting with Mac OS X 10.10, depending on the value of Color= and Duplex= , the color and duplex print settings for an AirPrint printer are disabled.
  6. Save the file.

Referencing zone files in the named.conf file

Note:  The zone file may not be in the same folder as the named.conf file.
  1. From Windows Explorer, navigate to the BIND installation folder, and then open the etc folder.

  2. Open the named.conf file, and then add the following after the options {directory... line:

    zone "domain.com." { type master; file "db.domain"; allow-update { any; }; };
    zone "1.168.192.in-addr.arpa" { type master; file "db.1.168.192.in-addr.arpa"; allow-update { any; }; };

    Notes:

    • The value after the file element is the relative path to the zone file. The path and file name must be correct based on the zone file that you have created. The allow-update key allows clients to add or update their DNS records, known as Dynamic Update.
    • Allow dynamic updates only when adding the new zone to a parent DNS server or when the new server installation is the only network DNS server. For more information on your environment, contact your system administrator.
  3. Save the file.

Starting the ISC BIND service

After the following are created, start the ISC BIND service:

Note:  Make sure that the startup type for the service is set to Automatic .
  1. From the Windows Administrative Tools window, click Services .

  2. Right-click the ISC BIND service, and then click Properties .

  3. From the Log On tab, set Log on as to Local System Account , and then click OK .

  4. Right-click the ISC BIND service, and then click Start .

Other considerations for DNS server configuration

The zones, domains, and resource records for AirPrint advertisement can be added to the parent DNS server of your organization. These domains and resource records can also be added to an existing zone. Clients that are configured to use that DNS server can discover the server using AirPrint when the following are specified in the network properties:

However, we recommend installing the DNS role on the LPM server, and then adding the appropriate zones, domains, and records to that server. Specify that server as a secondary DNS server or configure a forwarder on the parent DNS server using the IP address of the LPM server.

Zone transfers

Zone transfers can be considered a security risk. It must not occur between the parent DNS server and the LPM server. Setting up a forwarder or a delegation prevents zone transfers between the parent DNS server and the LPM server.

Note:  For more information on your environment, contact your system administrator.

Client configuration

You can configure the following with the IP address of the DNS server that is configured with a forwarder to the DNS server. The DNS server must be where the resource records for AirPrint advertisement and services discovery are maintained. Make sure that the iOS mobile device contains the correct zone or domain name as a search domain. For example, domain.com . These settings can be configured on the mobile device using a DHCP server or by manually editing the settings of that particular network:

Note:  For more information on your environment, contact your system administrator.

Creating profiles using Apple Configurator

An AirPrint device or AirPrint server can be deployed to a mobile device using a profile.

Note:  AirPrint profiles are applicable only on mobile devices running on iOS 7 or later.
  1. From your Macintosh computer, launch the Apple Configurator tool.

  2. Click Supervise .

  3. Select All Devices > the Add icon > Create New Profile .

  4. Select AirPrint , and then click Configure .

  5. From the AirPrint window, click the Add icon .

  6. Do either of the following:

    Manual configuration

    1. From the Configure printer menu, select Manually , and then type the IP address of the load balancer.

    2. In the Resource path field, type lpm/ipp/print .

    LPM configuration

    Note:  The following instructions are applicable only when your Macintosh computer is on the same subnet as the AirPrint server. You must also enable Bonjour discovery in the LPM web portal.
    1. From the Configure printer menu, select Lexmark Print Management , and then type the IPv4 or IPv6 address of the load balancer.

    2. In the Resource path field, make sure that /lpm/ipp/print is entered.

    Note:  You can add multiple AirPrint devices to a profile.
  7. From the Supervise window, select the profile, and then export it.

  8. Type a unique name for the profile, and then specify the location.

  9. Click Save .

To install the profile on a mobile device, do the following:

Understanding the command line tools for DNS server configuration