You can set the number of retries with the nslookup set retry command. You can set the time-out period with the nslookup set timeout command. The server didn't respond to a request after a certain amount of time and a certain number of retries. If the lookup request fails, the command-line tool provides an error message, including: Error message If you type a hyphen (-) instead of computerTofind, the command prompt changes to nslookup interactive mode. This behavior depends on the state of the following set subcommands: domain, srchlist, defname, and search. If computerTofind is a name and doesn't have a trailing period, the default DNS domain name is appended to the name. If computerTofind is an IP address and the query is for an A or PTR resource record type, the name of the computer is returned. Sorts and lists the output of the previous ls subcommand or commands. Specifies to use or not use a virtual circuit when sending requests to the server. This applies when the set and the lookup request contain at least one period, but do not end with a trailing period.Ĭhanges the default DNS domain name and search list.Ĭhanges the initial number of seconds to wait for a reply to a request. Tells the DNS name server to query other servers if it doesn't have the information.Ĭhanges the name of the root server used for queries.Īppends the DNS domain names in the DNS domain search list to the request until an answer is received. All fields of every packet are printed.Ĭhanges the default DNS domain name to the name specified.Ĭhanges the default TCP/UDP DNS name server port to the value specified.Ĭhanges the resource record type for the query. Turns exhaustive Debugging mode on or off. ![]() The class specifies the protocol group of the information. Prints the current values of the configuration settings.Ĭhanges the query class. Syntax nslookup Ĭonnects with the finger server on the current computer.Ĭhanges the default server to the specified DNS domain.Ĭhanges the default server to the server for the root of the DNS domain name space.Ĭhanges configuration settings that affect how lookups function. An unrecognized command is interpreted as a computer name. Treat a built-in command as a computer name, by preceding it with the escape character ( \). Interrupt interactive commands at any time, by pressing CTRL B. While using the interactive mode, you can: If you omit both parameters, the tool uses the default DNS name server. Type a hyphen (-) for the first parameter and the name or IP address of a DNS name server for the second parameter. If you need to look up more than one piece of data, you can use interactive mode. If you omit the second argument, nslookup uses the default DNS name server. For the second parameter, type the name or IP address of a DNS name server. For the first parameter, type the name or IP address of the computer that you want to look up. ![]() If you need to look up only a single piece of data, we recommend using the non-interactive mode. The nslookup command-line tool has two modes: interactive and noninteractive. ![]() The nslookup command-line tool is available only if you have installed the TCP/IP protocol. Before using this tool, you should be familiar with how DNS works. Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012ĭisplays information that you can use to diagnose Domain Name System (DNS) infrastructure.
0 Comments
Leave a Reply. |