Nslookup


nslookup is a network administration command-line tool available in many computer operating systems for querying the Domain Name System to obtain domain name or IP address mapping, or other DNS records. The name "nslookup" means "name server lookup".

Overview

nslookup was a member of the BIND name server software. Early in the development of BIND 9, the Internet Systems Consortium planned to deprecate nslookup in favor of host and dig. This decision was reversed in 2004 with the release of BIND 9.3 and nslookup has been fully supported since then.
The command does not use the operating system's local Domain Name System resolver library to perform its queries, and thus may behave differently from dig, which does. Additionally, vendor-provided versions may include output of other sources of name information, such as host files, and Network Information Service. Some behaviors of nslookup may be modified by the contents of resolv.conf.
The Linux version of nslookup was written by Andrew Cherenson.
The ReactOS version was developed by Lucas Suggs and is licensed under the GPL.

Usage

nslookup operates in interactive or non-interactive mode. When used interactively by invoking it without arguments or when the first argument is - and the second argument is a hostname or Internet address of a name server, the user issues parameter configurations or requests when presented with the nslookup prompt. When no arguments are given, then the command queries the default server. The - invokes subcommands which are specified on the command line and should precede nslookup commands. In non-interactive mode, i.e. when the first argument is a name or Internet address of the host being searched, parameters and the query are specified as command line arguments in the invocation of the program. The non interactive mode searches the information for a specified host using the default name server.