Nslookup: ls

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Nslookup: ls

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

Syntax

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

Parameters
  • Option
    The following table lists valid options.
<table>
<colgroup>
<col style="width: 50%" />
<col style="width: 50%" />
</colgroup>
<thead>
<tr class="header">
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p><strong>-t</strong><em>QueryType</em></p></td>
<td><p>Lists all records of the specified type. For a description of <em>QueryType</em>, see the <strong>setquerytype</strong> in Related Topics.</p></td>
</tr>
<tr class="even">
<td><p><strong>-a</strong></p></td>
<td><p>Lists aliases of computers in the DNS domain. This parameter is a synonym for <strong>-t CNAME</strong>.</p></td>
</tr>
<tr class="odd">
<td><p><strong>-d</strong></p></td>
<td><p>Lists all records for the DNS domain. This parameter is a synonym for <strong>-t ANY</strong>.</p></td>
</tr>
<tr class="even">
<td><p><strong>-h</strong></p></td>
<td><p>Lists CPU and operating system information for the DNS domain. This parameter is a synonym for <strong>-t HINFO</strong>.</p></td>
</tr>
<tr class="odd">
<td><p><strong>-s</strong></p></td>
<td><p>Lists well-known services of computers in the DNS domain. This parameter is a synonym for <strong>-t WKS</strong>.</p></td>
</tr>
</tbody>
</table>
  • 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
  • The default output contains computer names and their IP addresses. When output is directed to a file, hash marks are printed for every 50 records received from the server.

Formatting legend

Format Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Related Topics

Related Topic Icon

Command-line reference A-Z

Related Topic Icon

Command shell overview

Related Topic Icon

Nslookup

Related Topic Icon

Nslookup subcommands

Related Topic Icon

Nslookup: set querytype

Related Topic Icon

Using command redirection operators