acpi.4: Add some missing references.
[dragonfly.git] / contrib / bind-9.3 / bin / dig / nslookup.html
1 <!--
2  - Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
3  - 
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.
7  - 
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.
15 -->
16 <!-- $Id: nslookup.html,v 1.1.6.12 2006/06/29 13:02:30 marka Exp $ -->
17 <html>
18 <head>
19 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
20 <title>nslookup</title>
21 <meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
22 </head>
23 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
24 <a name="id2482694"></a><div class="titlepage"></div>
25 <div class="refnamediv">
26 <h2>Name</h2>
27 <p>nslookup &#8212; query Internet name servers interactively</p>
28 </div>
29 <div class="refsynopsisdiv">
30 <h2>Synopsis</h2>
31 <div class="cmdsynopsis"><p><code class="command">nslookup</code>  [<code class="option">-option</code>] [name | -] [server]</p></div>
32 </div>
33 <div class="refsect1" lang="en">
34 <a name="id2549404"></a><h2>DESCRIPTION</h2>
35 <p>
36 <span><strong class="command">Nslookup</strong></span>
37 is a program to query Internet domain name servers.  <span><strong class="command">Nslookup</strong></span>
38 has two modes: interactive and non-interactive.  Interactive mode allows
39 the user to query name servers for information about various hosts and
40 domains or to print a list of hosts in a domain.  Non-interactive mode is
41 used to print just the name and requested information for a host or
42 domain.
43 </p>
44 </div>
45 <div class="refsect1" lang="en">
46 <a name="id2549421"></a><h2>ARGUMENTS</h2>
47 <p>
48 Interactive mode is entered in the following cases:
49 </p>
50 <div class="orderedlist"><ol type="a">
51 <li><p>
52 when no arguments are given (the default name server will be used)
53 </p></li>
54 <li><p>
55 when the first argument is a hyphen (-) and the second argument is
56 the host name or Internet address of a name server.
57 </p></li>
58 </ol></div>
59 <p>
60 </p>
61 <p>
62 Non-interactive mode is used when the name or Internet address of the
63 host to be looked up is given as the first argument. The optional second
64 argument specifies the host name or address of a name server.
65 </p>
66 <p>
67 Options can also be specified on the command line if they precede the
68 arguments and are prefixed with a hyphen.  For example, to
69 change the default query type to host information, and the initial timeout to 10 seconds, type:
70 </p>
71 <div class="informalexample"><pre class="programlisting">
72 nslookup -query=hinfo  -timeout=10
73 </pre></div>
74 <p>
75 </p>
76 </div>
77 <div class="refsect1" lang="en">
78 <a name="id2549464"></a><h2>INTERACTIVE COMMANDS</h2>
79 <div class="variablelist"><dl>
80 <dt><span class="term">host [<span class="optional">server</span>]</span></dt>
81 <dd>
82 <p>
83 Look up information for host using the current default server or
84 using server, if specified.  If host is an Internet address and
85 the query type is A or PTR, the name of the host is returned.
86 If host is a name and does not have a trailing period, the
87 search list is used to qualify the name.
88 </p>
89 <p>
90 To look up a host not in the current domain, append a period to
91 the name.
92 </p>
93 </dd>
94 <dt><span class="term"><code class="constant">server</code> <em class="replaceable"><code>domain</code></em></span></dt>
95 <dd><p></p></dd>
96 <dt><span class="term"><code class="constant">lserver</code> <em class="replaceable"><code>domain</code></em></span></dt>
97 <dd><p>
98 Change the default server to <em class="replaceable"><code>domain</code></em>; <code class="constant">lserver</code> uses the initial
99 server to look up information about <em class="replaceable"><code>domain</code></em>, while <code class="constant">server</code> uses
100 the current default server.  If an authoritative answer can't be
101 found, the names of servers that might have the answer are
102 returned.
103 </p></dd>
104 <dt><span class="term"><code class="constant">root</code></span></dt>
105 <dd><p>not implemented</p></dd>
106 <dt><span class="term"><code class="constant">finger</code></span></dt>
107 <dd><p>not implemented</p></dd>
108 <dt><span class="term"><code class="constant">ls</code></span></dt>
109 <dd><p>not implemented</p></dd>
110 <dt><span class="term"><code class="constant">view</code></span></dt>
111 <dd><p>not implemented</p></dd>
112 <dt><span class="term"><code class="constant">help</code></span></dt>
113 <dd><p>not implemented</p></dd>
114 <dt><span class="term"><code class="constant">?</code></span></dt>
115 <dd><p>not implemented</p></dd>
116 <dt><span class="term"><code class="constant">exit</code></span></dt>
117 <dd><p>Exits the program.</p></dd>
118 <dt><span class="term"><code class="constant">set</code> <em class="replaceable"><code>keyword[<span class="optional">=value</span>]</code></em></span></dt>
119 <dd>
120 <p>This command is used to change state information that affects
121 the lookups.  Valid keywords are:
122  </p>
123 <div class="variablelist"><dl>
124 <dt><span class="term"><code class="constant">all</code></span></dt>
125 <dd><p>Prints the current values of the frequently used
126   options to <span><strong class="command">set</strong></span>.  Information about the  current default
127   server and host is also printed.
128   </p></dd>
129 <dt><span class="term"><code class="constant">class=</code><em class="replaceable"><code>value</code></em></span></dt>
130 <dd>
131 <p>
132    Change the query class to one of:
133    </p>
134 <div class="variablelist"><dl>
135 <dt><span class="term"><code class="constant">IN</code></span></dt>
136 <dd><p>the Internet class</p></dd>
137 <dt><span class="term"><code class="constant">CH</code></span></dt>
138 <dd><p>the Chaos class</p></dd>
139 <dt><span class="term"><code class="constant">HS</code></span></dt>
140 <dd><p>the Hesiod class</p></dd>
141 <dt><span class="term"><code class="constant">ANY</code></span></dt>
142 <dd><p>wildcard</p></dd>
143 </dl></div>
144 <p>
145    The class specifies the protocol group of the information.
146    </p>
147 <p>
148    (Default = IN; abbreviation = cl)
149    </p>
150 </dd>
151 <dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>debug</code></span></dt>
152 <dd>
153 <p>
154   Turn debugging mode on.  A lot more information is
155   printed about the packet sent to the server and the
156   resulting answer.
157   </p>
158 <p>
159   (Default = nodebug; abbreviation = [<span class="optional">no</span>]deb)
160   </p>
161 </dd>
162 <dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>d2</code></span></dt>
163 <dd>
164 <p>
165   Turn debugging mode on.  A lot more information is
166   printed about the packet sent to the server and the
167   resulting answer.
168   </p>
169 <p>
170   (Default = nod2)
171   </p>
172 </dd>
173 <dt><span class="term"><code class="constant">domain=</code><em class="replaceable"><code>name</code></em></span></dt>
174 <dd><p>
175   Sets the search list to <em class="replaceable"><code>name</code></em>.
176   </p></dd>
177 <dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>search</code></span></dt>
178 <dd>
179 <p>
180   If the lookup request contains at least one period but
181   doesn't end with a trailing period, append the domain
182   names in the domain search list to the request until an
183   answer is received.
184   </p>
185 <p>
186   (Default = search)
187   </p>
188 </dd>
189 <dt><span class="term"><code class="constant">port=</code><em class="replaceable"><code>value</code></em></span></dt>
190 <dd>
191 <p>
192   Change the default TCP/UDP name server port to <em class="replaceable"><code>value</code></em>.
193   </p>
194 <p>
195   (Default = 53; abbreviation = po)
196   </p>
197 </dd>
198 <dt><span class="term"><code class="constant">querytype=</code><em class="replaceable"><code>value</code></em></span></dt>
199 <dd><p></p></dd>
200 <dt><span class="term"><code class="constant">type=</code><em class="replaceable"><code>value</code></em></span></dt>
201 <dd>
202 <p>
203   Change the type of the information query.
204   </p>
205 <p>
206   (Default = A; abbreviations = q, ty)
207   </p>
208 </dd>
209 <dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>recurse</code></span></dt>
210 <dd>
211 <p>
212   Tell the name server to query other servers if it does not have the
213   information.
214   </p>
215 <p>
216   (Default = recurse; abbreviation = [no]rec)
217   </p>
218 </dd>
219 <dt><span class="term"><code class="constant">retry=</code><em class="replaceable"><code>number</code></em></span></dt>
220 <dd><p>
221   Set the number of retries to number.
222   </p></dd>
223 <dt><span class="term"><code class="constant">timeout=</code><em class="replaceable"><code>number</code></em></span></dt>
224 <dd><p>
225   Change the initial timeout interval for waiting for a
226   reply to number seconds.
227   </p></dd>
228 <dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>vc</code></span></dt>
229 <dd>
230 <p>
231   Always use a virtual circuit when sending requests to the server.
232   </p>
233 <p>
234   (Default = novc)
235   </p>
236 </dd>
237 </dl></div>
238 <p>
239 </p>
240 </dd>
241 </dl></div>
242 </div>
243 <div class="refsect1" lang="en">
244 <a name="id2549990"></a><h2>FILES</h2>
245 <p>
246 <code class="filename">/etc/resolv.conf</code>
247 </p>
248 </div>
249 <div class="refsect1" lang="en">
250 <a name="id2550003"></a><h2>SEE ALSO</h2>
251 <p>
252 <span class="citerefentry"><span class="refentrytitle">dig</span>(1)</span>,
253 <span class="citerefentry"><span class="refentrytitle">host</span>(1)</span>,
254 <span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>.
255 </p>
256 </div>
257 <div class="refsect1" lang="en">
258 <a name="id2550038"></a><h2>Author</h2>
259 <p>
260 Andrew Cherenson
261 </p>
262 </div>
263 </div></body>
264 </html>