1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
3 - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
5 - Permission to use, copy, modify, and distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
18 <!-- $Id: nslookup.docbook,v 1.3.6.3 2004/08/30 00:50:11 marka Exp $ -->
21 - Copyright (c) 1985, 1989
22 - The Regents of the University of California. All rights reserved.
24 - Redistribution and use in source and binary forms, with or without
25 - modification, are permitted provided that the following conditions
27 - 1. Redistributions of source code must retain the above copyright
28 - notice, this list of conditions and the following disclaimer.
29 - 2. Redistributions in binary form must reproduce the above copyright
30 - notice, this list of conditions and the following disclaimer in the
31 - documentation and/or other materials provided with the distribution.
32 - 3. All advertising materials mentioning features or use of this software
33 - must display the following acknowledgement:
34 - This product includes software developed by the University of
35 - California, Berkeley and its contributors.
36 - 4. Neither the name of the University nor the names of its contributors
37 - may be used to endorse or promote products derived from this software
38 - without specific prior written permission.
40 - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
41 - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42 - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
43 - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
44 - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
45 - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
46 - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47 - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48 - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49 - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
56 <date>Jun 30, 2000</date>
60 <refentrytitle>nslookup</refentrytitle>
61 <manvolnum>1</manvolnum>
62 <refmiscinfo>BIND9</refmiscinfo>
66 <refname>nslookup</refname>
67 <refpurpose>query Internet name servers interactively</refpurpose>
72 <command>nslookup</command>
73 <arg><option>-option</option></arg>
74 <arg choice=opt>name | -</arg>
75 <arg choice=opt>server</arg>
80 <title>DESCRIPTION</title>
82 <command>Nslookup</command>
83 is a program to query Internet domain name servers. <command>Nslookup</command>
84 has two modes: interactive and non-interactive. Interactive mode allows
85 the user to query name servers for information about various hosts and
86 domains or to print a list of hosts in a domain. Non-interactive mode is
87 used to print just the name and requested information for a host or
93 <title>ARGUMENTS</title>
95 Interactive mode is entered in the following cases:
96 <OrderedList Numeration=Loweralpha>
99 when no arguments are given (the default name server will be used)
104 when the first argument is a hyphen (-) and the second argument is
105 the host name or Internet address of a name server.
112 Non-interactive mode is used when the name or Internet address of the
113 host to be looked up is given as the first argument. The optional second
114 argument specifies the host name or address of a name server.
118 Options can also be specified on the command line if they precede the
119 arguments and are prefixed with a hyphen. For example, to
120 change the default query type to host information, and the initial timeout to 10 seconds, type:
123 nslookup -query=hinfo -timeout=10
131 <title>INTERACTIVE COMMANDS</title>
133 <varlistentry><term>host <optional>server</optional></term>
135 Look up information for host using the current default server or
136 using server, if specified. If host is an Internet address and
137 the query type is A or PTR, the name of the host is returned.
138 If host is a name and does not have a trailing period, the
139 search list is used to qualify the name.
143 To look up a host not in the current domain, append a period to
145 </para></listitem></varlistentry>
147 <varlistentry><term><constant>server</constant> <replaceable class="parameter">domain</replaceable></term>
148 <listitem><para></para></listitem></varlistentry>
149 <varlistentry><term><constant>lserver</constant> <replaceable class="parameter">domain</replaceable></term>
151 Change the default server to <replaceable>domain</replaceable>; <constant>lserver</constant> uses the initial
152 server to look up information about <replaceable>domain</replaceable>, while <constant>server</constant> uses
153 the current default server. If an authoritative answer can't be
154 found, the names of servers that might have the answer are
156 </para></listitem></varlistentry>
158 <varlistentry><term><constant>root</constant></term>
159 <listitem><para>not implemented</para></listitem></varlistentry>
161 <varlistentry><term><constant>finger</constant></term>
162 <listitem><para>not implemented</para></listitem></varlistentry>
164 <varlistentry><term><constant>ls</constant></term>
165 <listitem><para>not implemented</para></listitem></varlistentry>
167 <varlistentry><term><constant>view</constant></term>
168 <listitem><para>not implemented</para></listitem></varlistentry>
170 <varlistentry><term><constant>help</constant></term>
171 <listitem><para>not implemented</para></listitem></varlistentry>
173 <varlistentry><term><constant>?</constant></term>
174 <listitem><para>not implemented</para></listitem></varlistentry>
176 <varlistentry><term><constant>exit</constant></term>
177 <listitem><para>Exits the program.</para></listitem></varlistentry>
179 <varlistentry><term><constant>set</constant> <replaceable>keyword<optional>=value</optional></replaceable></term>
180 <listitem><para>This command is used to change state information that affects
181 the lookups. Valid keywords are:
183 <varlistentry><term><constant>all</constant></term>
185 <para>Prints the current values of the frequently used
186 options to <command>set</command>. Information about the current default
187 server and host is also printed.
192 <varlistentry><term><constant>class=</constant><replaceable>value</replaceable></term>
194 Change the query class to one of:
196 <varlistentry><term><constant>IN</constant></term>
197 <listitem><para>the Internet class</para></listitem></varlistentry>
198 <varlistentry><term><constant>CH</constant></term>
199 <listitem><para>the Chaos class</para></listitem></varlistentry>
200 <varlistentry><term><constant>HS</constant></term>
201 <listitem><para>the Hesiod class</para></listitem></varlistentry>
202 <varlistentry><term><constant>ANY</constant></term>
203 <listitem><para>wildcard</para></listitem></varlistentry>
205 The class specifies the protocol group of the information.
207 (Default = IN; abbreviation = cl)
211 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>debug</constant></term>
213 Turn debugging mode on. A lot more information is
214 printed about the packet sent to the server and the
217 (Default = nodebug; abbreviation = <optional>no</optional>deb)
218 </para></listitem></varlistentry>
220 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>d2</constant></term>
222 Turn debugging mode on. A lot more information is
223 printed about the packet sent to the server and the
227 </para></listitem></varlistentry>
229 <varlistentry><term><constant>domain=</constant><replaceable>name</replaceable></term>
231 Sets the search list to <replaceable>name</replaceable>.
232 </para></listitem></varlistentry>
234 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>search</constant></term>
236 If the lookup request contains at least one period but
237 doesn't end with a trailing period, append the domain
238 names in the domain search list to the request until an
242 </para></listitem></varlistentry>
244 <varlistentry><term><constant>port=</constant><replaceable>value</replaceable></term>
246 Change the default TCP/UDP name server port to <replaceable>value</replaceable>.
248 (Default = 53; abbreviation = po)
249 </para></listitem></varlistentry>
251 <varlistentry><term><constant>querytype=</constant><replaceable>value</replaceable></term>
252 <listitem><para></para></listitem></varlistentry>
254 <varlistentry><term><constant>type=</constant><replaceable>value</replaceable></term>
256 Change the top of the information query.
258 (Default = A; abbreviations = q, ty)
259 </para></listitem></varlistentry>
261 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>recurse</constant></term>
263 Tell the name server to query other servers if it does not have the
266 (Default = recurse; abbreviation = [no]rec)
267 </para></listitem></varlistentry>
269 <varlistentry><term><constant>retry=</constant><replaceable>number</replaceable></term>
271 Set the number of retries to number.
272 </para></listitem></varlistentry>
274 <varlistentry><term><constant>timeout=</constant><replaceable>number</replaceable></term>
276 Change the initial timeout interval for waiting for a
277 reply to number seconds.
278 </para></listitem></varlistentry>
280 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>vc</constant></term>
282 Always use a virtual circuit when sending requests to the server.
285 </para></listitem></varlistentry>
288 </para></listitem></varlistentry>
295 <filename>/etc/resolv.conf</filename>
300 <title>SEE ALSO</title>
303 <refentrytitle>dig</refentrytitle><manvolnum>1</manvolnum>
306 <refentrytitle>host</refentrytitle><manvolnum>1</manvolnum>
309 <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
315 <title>Author</title>