Export (0) Print
Expand All

Nslookup /ls

Published: September 28, 2007

Updated: April 17, 2012

Applies To: Windows Server 2008, Windows Server 2008 R2

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

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

 

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.

  • 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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft