nslookup.html revision 02004b6ff1357b0b97147058d54b58e9f29d8452
1107N/A<!--
2362N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
1107N/A -
1107N/A - Permission to use, copy, modify, and distribute this software for any
1107N/A - purpose with or without fee is hereby granted, provided that the above
1107N/A - copyright notice and this permission notice appear in all copies.
2362N/A -
1107N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2362N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1107N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1107N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1107N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1107N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1107N/A - PERFORMANCE OF THIS SOFTWARE.
1107N/A-->
1107N/A<!-- $Id: nslookup.html,v 1.8 2005/07/18 02:57:48 marka Exp $ -->
1107N/A<html>
1107N/A<head>
1107N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1107N/A<title>nslookup</title>
2362N/A<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
2362N/A</head>
2362N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
1107N/A<a name="id2456976"></a><div class="titlepage"></div>
1107N/A<div class="refnamediv">
1107N/A<h2>Name</h2>
1107N/A<p>nslookup &#8212; query Internet name servers interactively</p>
1107N/A</div>
1107N/A<div class="refsynopsisdiv">
1107N/A<h2>Synopsis</h2>
1107N/A<div class="cmdsynopsis"><p><code class="command">nslookup</code> [<code class="option">-option</code>] [name | -] [server]</p></div>
1107N/A</div>
1107N/A<div class="refsect1" lang="en">
1107N/A<a name="id2514587"></a><h2>DESCRIPTION</h2>
1107N/A<p><span><strong class="command">Nslookup</strong></span>
1107N/A is a program to query Internet domain name servers. <span><strong class="command">Nslookup</strong></span>
1107N/A has two modes: interactive and non-interactive. Interactive mode allows
1107N/A the user to query name servers for information about various hosts and
1107N/A domains or to print a list of hosts in a domain. Non-interactive mode
1107N/A is
1107N/A used to print just the name and requested information for a host or
1107N/A domain.
1107N/A </p>
1107N/A</div>
1107N/A<div class="refsect1" lang="en">
1107N/A<a name="id2514603"></a><h2>ARGUMENTS</h2>
1107N/A<p>
1107N/A Interactive mode is entered in the following cases:
1107N/A </p>
1107N/A<div class="orderedlist"><ol type="a">
1107N/A<li><p>
1107N/A when no arguments are given (the default name server will be used)
1107N/A </p></li>
1107N/A<li><p>
1107N/A when the first argument is a hyphen (-) and the second argument is
1107N/A the host name or Internet address of a name server.
1107N/A </p></li>
1107N/A</ol></div>
1107N/A<p>
1107N/A </p>
1107N/A<p>
1107N/A Non-interactive mode is used when the name or Internet address of the
1107N/A host to be looked up is given as the first argument. The optional second
1107N/A argument specifies the host name or address of a name server.
1107N/A </p>
1107N/A<p>
1107N/A Options can also be specified on the command line if they precede the
1107N/A arguments and are prefixed with a hyphen. For example, to
1107N/A change the default query type to host information, and the initial
1107N/A timeout to 10 seconds, type:
1107N/A </p>
1107N/A<div class="informalexample"><pre class="programlisting">
1107N/Anslookup -query=hinfo -timeout=10
1107N/A</pre></div>
1107N/A<p>
1107N/A </p>
1107N/A</div>
1107N/A<div class="refsect1" lang="en">
1107N/A<a name="id2514645"></a><h2>INTERACTIVE COMMANDS</h2>
1107N/A<div class="variablelist"><dl>
1107N/A<dt><span class="term">host [<span class="optional">server</span>]</span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Look up information for host using the current default server or
1107N/A using server, if specified. If host is an Internet address and
1107N/A the query type is A or PTR, the name of the host is returned.
1107N/A If host is a name and does not have a trailing period, the
1107N/A search list is used to qualify the name.
1107N/A </p>
1107N/A<p>
1107N/A To look up a host not in the current domain, append a period to
1107N/A the name.
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">server</code> <em class="replaceable"><code>domain</code></em></span></dt>
1107N/A<dd><p></p></dd>
1107N/A<dt><span class="term"><code class="constant">lserver</code> <em class="replaceable"><code>domain</code></em></span></dt>
1107N/A<dd><p>
1107N/A Change the default server to <em class="replaceable"><code>domain</code></em>; <code class="constant">lserver</code> uses the initial
1107N/A server to look up information about <em class="replaceable"><code>domain</code></em>, while <code class="constant">server</code> uses
1107N/A the current default server. If an authoritative answer can't be
1107N/A found, the names of servers that might have the answer are
1107N/A returned.
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">root</code></span></dt>
1107N/A<dd><p>
1107N/A not implemented
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">finger</code></span></dt>
1107N/A<dd><p>
1107N/A not implemented
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">ls</code></span></dt>
1107N/A<dd><p>
1107N/A not implemented
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">view</code></span></dt>
1107N/A<dd><p>
1107N/A not implemented
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">help</code></span></dt>
1107N/A<dd><p>
1107N/A not implemented
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">?</code></span></dt>
1107N/A<dd><p>
1107N/A not implemented
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">exit</code></span></dt>
1107N/A<dd><p>
1107N/A Exits the program.
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">set</code>
1107N/A <em class="replaceable"><code>keyword[<span class="optional">=value</span>]</code></em></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A This command is used to change state information that affects
1107N/A the lookups. Valid keywords are:
1107N/A </p>
1107N/A<div class="variablelist"><dl>
1107N/A<dt><span class="term"><code class="constant">all</code></span></dt>
1107N/A<dd><p>
1107N/A Prints the current values of the frequently used
1107N/A options to <span><strong class="command">set</strong></span>.
1107N/A Information about the current default
1107N/A server and host is also printed.
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">class=</code><em class="replaceable"><code>value</code></em></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Change the query class to one of:
1107N/A </p>
1107N/A<div class="variablelist"><dl>
1107N/A<dt><span class="term"><code class="constant">IN</code></span></dt>
1107N/A<dd><p>
1107N/A the Internet class
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">CH</code></span></dt>
1107N/A<dd><p>
1107N/A the Chaos class
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">HS</code></span></dt>
1107N/A<dd><p>
1107N/A the Hesiod class
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">ANY</code></span></dt>
1107N/A<dd><p>
1107N/A wildcard
1107N/A </p></dd>
1107N/A</dl></div>
1107N/A<p>
1107N/A The class specifies the protocol group of the information.
1107N/A
1107N/A </p>
1107N/A<p>
1107N/A (Default = IN; abbreviation = cl)
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">
1107N/A <em class="replaceable"><code>[<span class="optional">no</span>]</code></em>debug</code></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Turn debugging mode on. A lot more information is
1107N/A printed about the packet sent to the server and the
1107N/A resulting answer.
1107N/A </p>
1107N/A<p>
1107N/A (Default = nodebug; abbreviation = [<span class="optional">no</span>]deb)
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">
1107N/A <em class="replaceable"><code>[<span class="optional">no</span>]</code></em>d2</code></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Turn debugging mode on. A lot more information is
1107N/A printed about the packet sent to the server and the
1107N/A resulting answer.
1107N/A </p>
1107N/A<p>
1107N/A (Default = nod2)
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">domain=</code><em class="replaceable"><code>name</code></em></span></dt>
1107N/A<dd><p>
1107N/A Sets the search list to <em class="replaceable"><code>name</code></em>.
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">
1107N/A <em class="replaceable"><code>[<span class="optional">no</span>]</code></em>search</code></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A If the lookup request contains at least one period but
1107N/A doesn't end with a trailing period, append the domain
1107N/A names in the domain search list to the request until an
1107N/A answer is received.
1107N/A </p>
1107N/A<p>
1107N/A (Default = search)
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">port=</code><em class="replaceable"><code>value</code></em></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Change the default TCP/UDP name server port to <em class="replaceable"><code>value</code></em>.
1107N/A </p>
1107N/A<p>
1107N/A (Default = 53; abbreviation = po)
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">querytype=</code><em class="replaceable"><code>value</code></em></span></dt>
1107N/A<dd><p></p></dd>
1107N/A<dt><span class="term"><code class="constant">type=</code><em class="replaceable"><code>value</code></em></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Change the top of the information query.
1107N/A </p>
1107N/A<p>
1107N/A (Default = A; abbreviations = q, ty)
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">
1107N/A <em class="replaceable"><code>[<span class="optional">no</span>]</code></em>recurse</code></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Tell the name server to query other servers if it does not
1107N/A have the
1107N/A information.
1107N/A </p>
1107N/A<p>
1107N/A (Default = recurse; abbreviation = [no]rec)
1107N/A </p>
1107N/A</dd>
1107N/A<dt><span class="term"><code class="constant">retry=</code><em class="replaceable"><code>number</code></em></span></dt>
1107N/A<dd><p>
1107N/A Set the number of retries to number.
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">timeout=</code><em class="replaceable"><code>number</code></em></span></dt>
1107N/A<dd><p>
1107N/A Change the initial timeout interval for waiting for a
1107N/A reply to number seconds.
1107N/A </p></dd>
1107N/A<dt><span class="term"><code class="constant">
1107N/A <em class="replaceable"><code>[<span class="optional">no</span>]</code></em>vc</code></span></dt>
1107N/A<dd>
1107N/A<p>
1107N/A Always use a virtual circuit when sending requests to the
1107N/A server.
1107N/A </p>
1107N/A<p>
1107N/A (Default = novc)
1107N/A </p>
1107N/A</dd>
1107N/A</dl></div>
1107N/A<p>
1107N/A </p>
1107N/A</dd>
1107N/A</dl></div>
1107N/A</div>
1107N/A<div class="refsect1" lang="en">
1107N/A<a name="id2515302"></a><h2>FILES</h2>
1107N/A<p><code class="filename">/etc/resolv.conf</code>
1107N/A </p>
1107N/A</div>
1107N/A<div class="refsect1" lang="en">
1107N/A<a name="id2515314"></a><h2>SEE ALSO</h2>
1107N/A<p><span class="citerefentry"><span class="refentrytitle">dig</span>(1)</span>,
1107N/A <span class="citerefentry"><span class="refentrytitle">host</span>(1)</span>,
1107N/A <span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>.
1107N/A </p>
1107N/A</div>
1107N/A<div class="refsect1" lang="en">
1107N/A<a name="id2515348"></a><h2>Author</h2>
1107N/A<p>
1107N/A Andrew Cherenson
1107N/A </p>
1107N/A</div>
1107N/A</div></body>
1107N/A</html>
1107N/A