Nslookup /ls


Applies To: Windows Server 2008 R2,Windows Server 2008

Lists information for a Domain Name System (DNS) domain.

For examples of how this command can be used, see Examples.

Syntax


Copy Code

ls [<Option>] <DNSDomain> [{[>] <FileName>|[>>] <FileName>}]

Parameters

Parameter

Description

<Option>

The following table lists valid options.

Option

Description

-t <QueryType>

Lists all records of the specified type. For a description of <QueryType>, see the setquerytype in Additional references.

-a

Lists aliases of computers in the DNS domain. This parameter is a synonym for -t CNAME.

-d

Lists all records for the DNS domain. This parameter is a synonym for -t ANY.

-h

Lists CPU and operating system information for the DNS domain. This parameter is a synonym for -t HINFO.

-s

Lists well-known services of computers in the DNS domain. This parameter is a synonym for -t WKS.

<DNSDomain>

Specifies the DNS domain for which you want information.

<FileName>

Specifies a file name in which to save the output. You can use the greater than (>) and double greater than (>>) characters to redirect the output in the usual manner.

{help | ?}

Displays a short summary of nslookup subcommands.

Remarks <optional section>

Scripting <optional section>

<Here is where you discuss using the command within a script. You should also provide an FWLink to a specific page in the Script Center, if possible.>

Examples

<Here is where you put a detailed description of your example>:


Copy Code

This /is /the /example

<Here is where you put detailed descriptions of another example>:


Copy Code

This /is /a:"different" /example

Additional references

Command-Line Syntax Key

Nslookup /set querytype