NSlookup

Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. 

nslookup [SubCommand …] [{ComputerToFind| [Server]}]

ParameterDescription
nslookup exitExits the nslookup command-line tool.
nslookup fingerConnects with the finger server on the current computer.
nslookup helpDisplays a short summary of subcommands.
nslookup lsLists information for a DNS domain.
nslookup lserverChanges the default server to the specified DNS domain.
nslookup rootChanges the default server to the server for the root of the DNS domain name space.
nslookup serverChanges the default server to the specified DNS domain.
nslookup setChanges configuration settings that affect how lookups function.
nslookup set allPrints the current values of the configuration settings.
nslookup set classChanges the query class. The class specifies the protocol group of the information.
nslookup set d2Turns exhaustive Debugging mode on or off. All fields of every packet are printed.
nslookup set debugTurns Debugging mode on or off.
nslookup set domainChanges the default DNS domain name to the name specified.
nslookup set portChanges the default TCP/UDP DNS name server port to the value specified.
nslookup set querytypeChanges the resource record type for the query.
nslookup set recurseTells the DNS name server to query other servers if it doesn’t have the information.
nslookup set retrySets the number of retries.
nslookup set rootChanges the name of the root server used for queries.
nslookup set searchAppends the DNS domain names in the DNS domain search list to the request until an answer is received. This applies when the set and the lookup request contain at least one period, but do not end with a trailing period.
nslookup set srchlistChanges the default DNS domain name and search list.
nslookup set timeoutChanges the initial number of seconds to wait for a reply to a request.
nslookup set typeChanges the resource record type for the query.
nslookup set vcSpecifies to use or not use a virtual circuit when sending requests to the server.
nslookup viewSorts and lists the output of the previous ls subcommand or commands.

NSlookup error messages:

Error messageDescription
Timed outThe server did not respond to a request after a certain amount of time and a certain number of retries. You can set the time-out period with the set timeout subcommand. You can set the number of retries with the set retry subcommand.
No response from serverNo DNS name server is running on the server computer.
No recordsThe DNS name server does not have resource records of the current query type for the computer, although the computer name is valid. The query type is specified with the set querytype command.
Nonexistent domainThe computer or DNS domain name does not exist.
Connection refused-or-Network is unreachableThe connection to the DNS name server or finger server could not be made. This error commonly occurs with ls and finger requests.
Server failureThe DNS name server found an internal inconsistency in its database and could not return a valid answer.
RefusedThe DNS name server refused to service the request.
Format errorThe DNS name server found that the request packet was not in the proper format. It may indicate an error in nslookup.

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup

Leave a Reply