text
stringlengths
0
4.23k
nslookup help
Displays the subcommand help text.
Syntax
help
?
Parameters
Parameter
Description
/?
Displays help at the command prompt.
/help
Displays help at the command prompt.
nslookup ls
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Lists DNS domain information.
Syntax
ls [<option>] <DNSdomain> [{[>] <filename>|[>>] <filename>}]
Parameters
Parameter
Description
<option>
The valid options include:-t: Lists all records of the specified type. For more information, see nslookup set querytype.-a: Lists aliases of computers in the DNS domain. This parameter is the same as -t CNAME-d: Lists all records for the DNS domain. This parameter is the same as -t ANY-h: Lists CPU and operating system information for the DNS domain. This parameter is the same as -t HINFO-s: Lists well-known services of computers in the DNS domain. This parameter is the same as -t WKS.
<DNSdomain>
Specifies the DNS domain for which you want information.
<filename>
Specifies a file name to use for the saved output. You can use the greater than (>) and double greater than (>>) characters to redirect the output in the usual manner.
/?
Displays help at the command prompt.
/help
Displays help at the command prompt.
<option>
<DNSdomain>
<filename>
>
>>
Remarks
The default output of this command includes computer names and their associated IP addresses.
If your output is directed to a file, hash marks are added for every 50 records received from the server.
nslookup lserver
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Changes the initial server to the specified Domain Name System (DNS) domain.
This command uses the initial server to look up the information about the specified DSN domain. If you want to lookup information using the current default server, use the nslookup server command.
Syntax
lserver <DNSdomain>
Parameters
Parameter
Description
<DNSdomain>
Specifies the DNS domain for the initial server.
/?
Displays help at the command prompt.
/help
Displays help at the command prompt.
<DNSdomain>
nslookup root
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Changes the default server to the server for the root of the Domain Name System (DNS) domain name space. Currently, the ns.nic.ddn.mil name server is used. You can change the name of the root server using the nslookup set root command.
Note
This command is the same as lserver ns.nic.ddn.mil.
lserver ns.nic.ddn.mil