2 - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
4 - Permission to use, copy, modify, and distribute this software for any
5 - purpose with or without fee is hereby granted, provided that the above
6 - copyright notice and this permission notice appear in all copies.
8 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 - PERFORMANCE OF THIS SOFTWARE.
17 <!-- $Id: nslookup.html,v 1.1.6.3 2004/08/22 23:38:58 marka Exp $ -->
19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
26 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
46 >nslookup -- query Internet name servers interactively</DIV
48 CLASS="REFSYNOPSISDIV"
61 >] [name | -] [server]</P
75 is a program to query Internet domain name servers. <B
79 has two modes: interactive and non-interactive. Interactive mode allows
80 the user to query name servers for information about various hosts and
81 domains or to print a list of hosts in a domain. Non-interactive mode is
82 used to print just the name and requested information for a host or
93 >Interactive mode is entered in the following cases:
100 >when no arguments are given (the default name server will be used)</P
104 >when the first argument is a hyphen (-) and the second argument is
105 the host name or Internet address of a name server.</P
110 >Non-interactive mode is used when the name or Internet address of the
111 host to be looked up is given as the first argument. The optional second
112 argument specifies the host name or address of a name server.</P
114 >Options can also be specified on the command line if they precede the
115 arguments and are prefixed with a hyphen. For example, to
116 change the default query type to host information, and the initial timeout to 10 seconds, type:
118 CLASS="INFORMALEXAMPLE"
125 CLASS="PROGRAMLISTING"
126 >nslookup -query=hinfo -timeout=10</PRE
138 >INTERACTIVE COMMANDS</H2
151 >Look up information for host using the current default server or
152 using server, if specified. If host is an Internet address and
153 the query type is A or PTR, the name of the host is returned.
154 If host is a name and does not have a trailing period, the
155 search list is used to qualify the name.</P
157 >To look up a host not in the current domain, append a period to
182 >Change the default server to <VAR
189 server to look up information about <VAR
196 the current default server. If an authoritative answer can't be
197 found, the names of servers that might have the answer are
261 >Exits the program.</P
276 >This command is used to change state information that affects
277 the lookups. Valid keywords are:
290 >Prints the current values of the frequently used
294 >. Information about the current default
295 server and host is also printed.
308 > Change the query class to one of:
321 >the Internet class</P
353 The class specifies the protocol group of the information.
356 > (Default = IN; abbreviation = cl)
372 > Turn debugging mode on. A lot more information is
373 printed about the packet sent to the server and the
377 > (Default = nodebug; abbreviation = [<SPAN
396 > Turn debugging mode on. A lot more information is
397 printed about the packet sent to the server and the
414 > Sets the search list to <VAR
433 > If the lookup request contains at least one period but
434 doesn't end with a trailing period, append the domain
435 names in the domain search list to the request until an
452 > Change the default TCP/UDP name server port to <VAR
458 > (Default = 53; abbreviation = po)
483 > Change the top of the information query.
486 > (Default = A; abbreviations = q, ty)
502 > Tell the name server to query other servers if it does not have the
506 > (Default = recurse; abbreviation = [no]rec)
519 > Set the number of retries to number.
532 > Change the initial timeout interval for waiting for a
533 reply to number seconds.
549 > Always use a virtual circuit when sending requests to the server.
572 >/etc/resolv.conf</TT
586 CLASS="REFENTRYTITLE"
593 CLASS="REFENTRYTITLE"
600 CLASS="REFENTRYTITLE"