Understanding the command line tools for DNS server configuration

  • 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 nslookup IPaddress , where IPaddress 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 nslookup HostName , where HostName 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 dns-sd -B _ipp._tcp.

    To check the details of an advertised printer service, from the command line, type the following:

    dns-sd -L HostName _ipps._tcp DomainName

    Where:

    • HostName is the host name for your environment.

    • DomainName is the domain name for your environment.

    Note: To prevent conflicts with the Bonjour Service used for mDNS advertisements, do not install the Bonjour SDK (or Bonjour for Windows) on the LPM server.
  • DIG—Lets you check whether the resource records are correct from a terminal session on a Macintosh computer. The following are sample DIG commands:

    • dig -t PTR _ipps._tcp.domain.com

      This command returns the host name for the PTR record in the Answer section of the response.

    • dig -t SRV lpm-airprint._ipps._tcp.domain.com

      This command returns the priority, weight, port, and host name information for the SRV record in the Answer section of the response.

    • dig -t TXT lpm-airprint._ipps._tcp.domain.com

      This command returns the key and value pairs for the TXT record in the Answer section of the response.

    • dig -x 192.168.1.10

      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 192.168.1.10 .

    • dig lpm-airprint.domain.com

      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 lpm-airprint.domain.com .