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 , 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.
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:
-
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 .
-