Name
nslookup
Synopsis
nslookup [-option
...] [host_to_find
| - [server
]]
Queries Internet domain nameservers. This command is deprecated, and users should turn to dig for their name lookup needs.
nslookup has two modes: interactive and noninteractive. Interactive mode allows the user to query nameservers for information about various hosts and domains or to print a list of hosts in a domain. Interactive mode is entered when either no arguments are provided (the default nameserver will be used), or the first argument is a hyphen and the second argument is the hostname or Internet address of a nameserver. Noninteractive mode is used to print just the name and requested information for a host or domain. It is used when the name of the host to be looked up is given as the first argument. Any of the keyword
=value
pairs listed under the interactive set command can be used as an option on the command line by prefacing the keyword with a -. The optional second argument specifies a nameserver.
Options
All options
under the set interactive command can be entered on the command line, with the syntax -
keyword
[=
value
].
Interactive commands
- exit
Exit nslookup.
-
finger [
name
] [>
|>>
filename
] Connect to finger server on current host, optionally creating or appending to
filename
.- help, ?
Print a brief summary of commands.
-
host[
server
] Look up information for
host
using the current default server or usingserver
if specified.-
ls -[adhs] -[t
querytype
]domain
[>
|>>
filename
] List information available for ...
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.