1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
2 "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
3 [<!ENTITY mdash "—">]>
5 - Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
7 - Permission to use, copy, modify, and distribute this software for any
8 - purpose with or without fee is hereby granted, provided that the above
9 - copyright notice and this permission notice appear in all copies.
11 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 - PERFORMANCE OF THIS SOFTWARE.
20 <!-- $Id: nslookup.docbook,v 1.3.6.7 2006/01/06 00:01:42 marka Exp $ -->
23 - Copyright (c) 1985, 1989
24 - The Regents of the University of California. All rights reserved.
26 - Redistribution and use in source and binary forms, with or without
27 - modification, are permitted provided that the following conditions
29 - 1. Redistributions of source code must retain the above copyright
30 - notice, this list of conditions and the following disclaimer.
31 - 2. Redistributions in binary form must reproduce the above copyright
32 - notice, this list of conditions and the following disclaimer in the
33 - documentation and/or other materials provided with the distribution.
34 - 3. All advertising materials mentioning features or use of this software
35 - must display the following acknowledgement:
36 - This product includes software developed by the University of
37 - California, Berkeley and its contributors.
38 - 4. Neither the name of the University nor the names of its contributors
39 - may be used to endorse or promote products derived from this software
40 - without specific prior written permission.
42 - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
43 - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
44 - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
45 - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
46 - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
47 - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
48 - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49 - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
50 - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
51 - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 <date>Jun 30, 2000</date>
62 <refentrytitle>nslookup</refentrytitle>
63 <manvolnum>1</manvolnum>
64 <refmiscinfo>BIND9</refmiscinfo>
72 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
77 <refname>nslookup</refname>
78 <refpurpose>query Internet name servers interactively</refpurpose>
83 <command>nslookup</command>
84 <arg><option>-option</option></arg>
85 <arg choice="opt">name | -</arg>
86 <arg choice="opt">server</arg>
91 <title>DESCRIPTION</title>
93 <command>Nslookup</command>
94 is a program to query Internet domain name servers. <command>Nslookup</command>
95 has two modes: interactive and non-interactive. Interactive mode allows
96 the user to query name servers for information about various hosts and
97 domains or to print a list of hosts in a domain. Non-interactive mode is
98 used to print just the name and requested information for a host or
104 <title>ARGUMENTS</title>
106 Interactive mode is entered in the following cases:
107 <orderedlist numeration="loweralpha">
110 when no arguments are given (the default name server will be used)
115 when the first argument is a hyphen (-) and the second argument is
116 the host name or Internet address of a name server.
123 Non-interactive mode is used when the name or Internet address of the
124 host to be looked up is given as the first argument. The optional second
125 argument specifies the host name or address of a name server.
129 Options can also be specified on the command line if they precede the
130 arguments and are prefixed with a hyphen. For example, to
131 change the default query type to host information, and the initial timeout to 10 seconds, type:
134 nslookup -query=hinfo -timeout=10
142 <title>INTERACTIVE COMMANDS</title>
144 <varlistentry><term>host <optional>server</optional></term>
146 Look up information for host using the current default server or
147 using server, if specified. If host is an Internet address and
148 the query type is A or PTR, the name of the host is returned.
149 If host is a name and does not have a trailing period, the
150 search list is used to qualify the name.
154 To look up a host not in the current domain, append a period to
156 </para></listitem></varlistentry>
158 <varlistentry><term><constant>server</constant> <replaceable class="parameter">domain</replaceable></term>
159 <listitem><para></para></listitem></varlistentry>
160 <varlistentry><term><constant>lserver</constant> <replaceable class="parameter">domain</replaceable></term>
162 Change the default server to <replaceable>domain</replaceable>; <constant>lserver</constant> uses the initial
163 server to look up information about <replaceable>domain</replaceable>, while <constant>server</constant> uses
164 the current default server. If an authoritative answer can't be
165 found, the names of servers that might have the answer are
167 </para></listitem></varlistentry>
169 <varlistentry><term><constant>root</constant></term>
170 <listitem><para>not implemented</para></listitem></varlistentry>
172 <varlistentry><term><constant>finger</constant></term>
173 <listitem><para>not implemented</para></listitem></varlistentry>
175 <varlistentry><term><constant>ls</constant></term>
176 <listitem><para>not implemented</para></listitem></varlistentry>
178 <varlistentry><term><constant>view</constant></term>
179 <listitem><para>not implemented</para></listitem></varlistentry>
181 <varlistentry><term><constant>help</constant></term>
182 <listitem><para>not implemented</para></listitem></varlistentry>
184 <varlistentry><term><constant>?</constant></term>
185 <listitem><para>not implemented</para></listitem></varlistentry>
187 <varlistentry><term><constant>exit</constant></term>
188 <listitem><para>Exits the program.</para></listitem></varlistentry>
190 <varlistentry><term><constant>set</constant> <replaceable>keyword<optional>=value</optional></replaceable></term>
191 <listitem><para>This command is used to change state information that affects
192 the lookups. Valid keywords are:
194 <varlistentry><term><constant>all</constant></term>
196 <para>Prints the current values of the frequently used
197 options to <command>set</command>. Information about the current default
198 server and host is also printed.
203 <varlistentry><term><constant>class=</constant><replaceable>value</replaceable></term>
205 Change the query class to one of:
207 <varlistentry><term><constant>IN</constant></term>
208 <listitem><para>the Internet class</para></listitem></varlistentry>
209 <varlistentry><term><constant>CH</constant></term>
210 <listitem><para>the Chaos class</para></listitem></varlistentry>
211 <varlistentry><term><constant>HS</constant></term>
212 <listitem><para>the Hesiod class</para></listitem></varlistentry>
213 <varlistentry><term><constant>ANY</constant></term>
214 <listitem><para>wildcard</para></listitem></varlistentry>
216 The class specifies the protocol group of the information.
218 (Default = IN; abbreviation = cl)
222 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>debug</constant></term>
224 Turn debugging mode on. A lot more information is
225 printed about the packet sent to the server and the
228 (Default = nodebug; abbreviation = <optional>no</optional>deb)
229 </para></listitem></varlistentry>
231 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>d2</constant></term>
233 Turn debugging mode on. A lot more information is
234 printed about the packet sent to the server and the
238 </para></listitem></varlistentry>
240 <varlistentry><term><constant>domain=</constant><replaceable>name</replaceable></term>
242 Sets the search list to <replaceable>name</replaceable>.
243 </para></listitem></varlistentry>
245 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>search</constant></term>
247 If the lookup request contains at least one period but
248 doesn't end with a trailing period, append the domain
249 names in the domain search list to the request until an
253 </para></listitem></varlistentry>
255 <varlistentry><term><constant>port=</constant><replaceable>value</replaceable></term>
257 Change the default TCP/UDP name server port to <replaceable>value</replaceable>.
259 (Default = 53; abbreviation = po)
260 </para></listitem></varlistentry>
262 <varlistentry><term><constant>querytype=</constant><replaceable>value</replaceable></term>
263 <listitem><para></para></listitem></varlistentry>
265 <varlistentry><term><constant>type=</constant><replaceable>value</replaceable></term>
267 Change the type of the information query.
269 (Default = A; abbreviations = q, ty)
270 </para></listitem></varlistentry>
272 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>recurse</constant></term>
274 Tell the name server to query other servers if it does not have the
277 (Default = recurse; abbreviation = [no]rec)
278 </para></listitem></varlistentry>
280 <varlistentry><term><constant>retry=</constant><replaceable>number</replaceable></term>
282 Set the number of retries to number.
283 </para></listitem></varlistentry>
285 <varlistentry><term><constant>timeout=</constant><replaceable>number</replaceable></term>
287 Change the initial timeout interval for waiting for a
288 reply to number seconds.
289 </para></listitem></varlistentry>
291 <varlistentry><term><constant><replaceable><optional>no</optional></replaceable>vc</constant></term>
293 Always use a virtual circuit when sending requests to the server.
296 </para></listitem></varlistentry>
299 </para></listitem></varlistentry>
306 <filename>/etc/resolv.conf</filename>
311 <title>SEE ALSO</title>
314 <refentrytitle>dig</refentrytitle><manvolnum>1</manvolnum>
317 <refentrytitle>host</refentrytitle><manvolnum>1</manvolnum>
320 <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
326 <title>Author</title>