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:
AirPrint advertisement
Service discovery for the Lexmark Print Management solution
Reply to Unicast DNS queries from an AirPrint-capable device
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.
From the Windows Administrative Tools window, click Server Manager.
Click Manage > Add Roles and Features > Next.
For the installation type, select Role-based or feature-based installation, and then click Next.
Click Select a server from the server pool, and then select the appropriate server.
Select DNS Server > Add Features > Next.
Click Install.
From the Windows Administrative Tools window, click Server Manager.
Click Roles > Add Roles > Next.
Select DNS Server > Next.
Click Install.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, right-click Forward Lookup Zones, and then click New Zone > Next.
For the zone type, select Primary zone, and then click Next.
Specify the name of your domain, and then click Next.
Click Create a new file with this file name, and then click Next.
Select Do not allow dynamic updates > Next.
Click Finish.
Notes:
From the primary DNS server, navigate to the Windows Administrative Tools window, and then click DNS.
Expand the host name of your server, right-click Reverse Lookup Zones, and then click New Zone > Next.
For the zone type, select Primary zone, and then click Next.
Select IPv4 Reverse Lookup, and then click Next.
Enter the first three octets of the IP address of your DNS server, and then click Next.
Click Create a new file with this file name, and then click Next.
Select Do not allow dynamic updates > Next.
Click Finish.
From the primary DNS server, navigate to the Windows Administrative Tools window, and then click DNS.
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.
Specify the host name and IP address of the LPM server.
Select Create associated pointer (PTR) record > Add Host.
Host A records in the forward and reverse lookup zones are created automatically in the following scenarios:
When joining Active Directory Domain
When the DNS server is not a member of Active Directory Domain and Dynamic Updates are allowed
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.
From the primary DNS server, navigate to the Windows Administrative Tools window, and then click DNS.
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.
Specify the alias name and the fully qualified domain name of the server.
Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, right-click the domain that is created in the forward lookup zone, and then click New Domain.
In the New DNS Domain dialog box, type
.Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, right-click the _tcp subdomain following the forward lookup zone, and then click New Domain.
In the New DNS Domain dialog box, type
.Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.
Right-click the _ipp subdomain, and then click New Domain.
In the New DNS Domain dialog box, type
.Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, and then expand the _tcp and _ipp subdomains following the forward lookup zone.
Right-click the _sub subdomain, and then click Other New Records.
In the Resource Record Type dialog box, select Pointer (PTR), and then click Create Record.
In the Host IP Address field, type
.In the Host name field, type the host name in the following format:
Where:
is the host name of the server used when creating the host A record.
is the domain name of your organization.
Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.
Right-click the _ipp subdomain, and then click Other New Records.
In the Resource Record Type dialog box, do any of the following:
Select Pointer (PTR), and then click Create Record
Leave the Host IP Address field blank.
In the Host name field, type the host name in the following format:
Where:
is the host name of the server used when creating the host A record.
is the domain name of your organization.
Select Service Location (SRV), and then click Create Record
In the Service field, type the host name of the server.
In the Protocol field, type
.Make sure that the Priority and Weight fields are set to
.In the Port number field, enter
.In the Host offering this service field, type the fully qualified domain name of the LPM server.
Select Text (TXT), and then click Create Record
In the Record name field, type the host name of the server.
In the Text section, specify the correct key and value pairs.
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
Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, right-click the _tcp subdomain following the forward lookup zone, and then click New Domain.
In the New DNS Domain dialog box, type
.Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.
Right-click the _ipps subdomain, and then click New Domain.
In the New DNS Domain dialog box, type
.Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, and then expand the _tcp and _ipps subdomains following the forward lookup zone.
Right-click the _sub subdomain, and then click Other New Records.
In the Resource Record Type dialog box, select Pointer (PTR), and then click Create Record.
In the Host IP Address field, type
.In the Host name field, type the host name in the following format:
Where:
is the host name of the server used when creating the host A record.
is the domain name of your organization.
Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, and then expand the _tcp subdomain following the forward lookup zone.
Right-click the _ipps subdomain, and then click Other New Records.
In the Resource Record Type dialog box, do any of the following:
Select Pointer (PTR), and then click Create Record
Leave the Host IP Address field blank.
In the Host name field, type the host name in the following format:
Where:
is the host name of the server used when creating the host A record.
is the domain name of your organization.
Select Service Location (SRV), and then click Create Record
In the Service field, type the host name of the server.
In the Protocol field, type
.Make sure that the Priority and Weight fields are set to
.In the Port number field, enter
.In the Host offering this service field, type the fully qualified domain name of the LPM server.
Select Text (TXT), and then click Create Record
In the Record name field, type the host name of the server.
In the Text section, specify the correct key and value pairs.
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
Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, right-click the domain that is created in the forward lookup zone, and then click New Domain.
In the New DNS Domain dialog box, type
.Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, right-click the _udp subdomain following the forward lookup zone, and then click New Domain.
In the New DNS Domain dialog box, type
.Click OK.
From the Windows Administrative Tools window, click DNS.
Expand the host name of your server, and then expand the _udp subdomain following the forward lookup zone.
Right-click the _dns-sd subdomain, and then click Other New Records.
In the Resource Record Type dialog box, do any of the following:
Select Pointer (PTR), and then click Create Record
In the Host IP Address field, type
.In the Host name field, type
, where is the domain name of your organization.Select Pointer (PTR), and then click Create Record
In the Host IP Address field, type
.In the Host name field, type
, where is the domain name of your organization.Select Pointer (PTR), and then click Create Record
In the Host IP Address field, type
or , respectively.In the Host name field, type the domain name of your organization.
Click OK.
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.
From the primary or secondary DNS server, navigate to the Windows Administrative Tools window, and then click DNS.
Right-click the host name of your server, and then click Properties.
From the Forwarders tab, click Edit.
In the Selected domain's forwarder IP address list field, specify the IP address of your new server installation.
Click Add.
From Windows Explorer, navigate to the BIND installation folder, and then open the etc folder.
Open the named.conf file, and then add the following line:
Where
is the IP address of the DNS server that contains the appropriate AirPrint resource records.Save the file.
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.
From the primary or secondary DNS server, navigate to the Windows Administrative Tools window, and then click DNS.
Right-click the zone or domain where you want to create a delegation, and then click New Delegation > Next.
Specify the name of the subdomain to delegate, and then click Next > Add.
Specify the IP address of the DNS server that contains the appropriate AirPrint resource records for the subdomain, and then click Ok.
Click Finish.
From the command prompt, navigate to the BIND installation folder. For example,
.Switch to the bin directory. For example,
.Type
, and then press Enter.Type
, and then press Enter.From the command prompt, navigate to the BIND installation folder. For example,
.Switch to the etc directory. For example,
.Type
, and then press Enter.When prompted to create a file, click Yes.
At the top of the file, type
, where is the BIND installation directory, and then press Enter.From Windows Explorer, navigate to the BIND installation folder, and then open the etc folder.
Open the rndc.conf file, and then copy the text following the
line.Open the named.conf file, and then paste the text after the
line.Remove
from all lines except the and lines.Click File > Exit > Save.
From the command prompt, navigate to the BIND installation folder. For example,
.Switch to the etc directory. For example,
.Type
, where is the domain name of your server, and then press Enter.When prompted to create a file, click Yes.
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:
is the fully qualified domain name of your server.
is the IP address of your server.
is the host name of your server.
Save the file.
From the command prompt, navigate to the BIND installation folder. For example,
.Switch to the etc directory. For example,
.Type
.in-addr.arpa, where is the first three octets of the IP address of your server in reverse order, and then press Enter.When prompted to create a file, click Yes.
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:
is the fully qualified domain name of your server.
is the last octet of the IP address of your server.
Notes:
Save the file.
From Windows Explorer, navigate to the BIND installation folder, and then open the etc folder.
Open the named.conf file, and then add the following after the
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:
Save the file.
After the following are created, start the ISC BIND service:
Key files
Zone files
named.conf file
From the Windows Administrative Tools window, click Services.
Right-click the ISC BIND service, and then click Properties.
From the Log On tab, set Log on as to Local System Account, and then click OK.
Right-click the ISC BIND service, and then click Start.
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:
DNS server IP address
Search domains
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 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.
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,
. These settings can be configured on the mobile device using a DHCP server or by manually editing the settings of that particular network:Mobile devices
Macintosh computers
An AirPrint device or AirPrint server can be deployed to a mobile device using a profile.
From your Macintosh computer, launch the Apple Configurator tool.
Click Supervise.
Select All Devices > > Create New Profile.
Select AirPrint, and then click Configure.
From the AirPrint window, click .
Do either of the following:
From the Configure printer menu, select Manually, and then type the IP address of the load balancer.
In the Resource path field, type
.From the Configure printer menu, select Lexmark Print Management, and then type the IPv4 or IPv6 address of the load balancer.
In the Resource path field, make sure that
is entered.From the Supervise window, select the profile, and then export it.
Type a unique name for the profile, and then specify the location.
Click Save.
To install the profile on a mobile device, do the following:
Use the Apple Configurator tool
E-mail the profile to the mobile device as an attachment
Deploy the profile using a mobile device management tool
NSLookup—Lets you resolve names in the forward and reverse lookup zones. From the command line of a Windows or Macintosh computer, do either of the following:
Type
, where is the IP address of the server, and then press Enter. Make sure that the correct host name is returned to indicate that the host (A) records have been created successfully.Type
, where is the IP address of the server, and then press Enter. Make sure that the correct IP address is returned to indicate that the host (A) records have been created successfully.DNS-SD—Lets you view a list of AirPrint-advertised services and their associated domain names. You must be on the same network subnet as the server to view the mDNS advertisements of the server. This tool lets you check whether the records for AirPrint advertisement have been created correctly for the appropriate zone or domain name.
With the Bonjour SDK installed on your Windows computer, from the command line, type
.To check the details of an advertised printer service, from the command line, type the following:
Where:
is the host name for your environment.
is the domain name for your environment.
DIG—Lets you check whether the resource records are correct from a terminal session on a Macintosh computer. The following are sample DIG commands:
This command returns the host name for the PTR record in the Answer section of the response.
This command returns the priority, weight, port, and host name information for the SRV record in the Answer section of the response.
This command returns the key and value pairs for the TXT record in the Answer section of the response.
This command performs a forward lookup. It returns the host name in the Answer section as defined in the forward lookup zone for the sample IP address
.This command performs a reverse lookup. It returns the IP address in the Answer section as defined in the reverse lookup zone for the sample host name
.