man.nslookup.html revision c80e152862cc3e3207dc837fde7116bd4c0e4b9d
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync - Copyright (C) 2000-2018 Internet Systems Consortium, Inc. ("ISC")
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync - This Source Code Form is subject to the terms of the Mozilla Public
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync - License, v. 2.0. If a copy of the MPL was not distributed with this
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync - file, You can obtain one at http://mozilla.org/MPL/2.0/.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<link rel="next" href="man.dnssec-checkds.html" title="dnssec-checkds">
1522fd0a1b3f8a389582eaf96f3980cfe141547cvboxsync<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
dd1de51db071be42f2acdf532c49c851b78b0812vboxsync<tr><th colspan="3" align="center">nslookup</th></tr>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<a accesskey="p" href="man.delv.html">Prev</a>�</td>
1522fd0a1b3f8a389582eaf96f3980cfe141547cvboxsync<td width="20%" align="right">�<a accesskey="n" href="man.dnssec-checkds.html">Next</a>
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync<a name="man.nslookup"></a><div class="titlepage"></div>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync — query Internet name servers interactively
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <p><span class="command"><strong>Nslookup</strong></span>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync is a program to query Internet domain name servers. <span class="command"><strong>Nslookup</strong></span>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync has two modes: interactive and non-interactive. Interactive mode allows
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the user to query name servers for information about various hosts and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync domains or to print a list of hosts in a domain. Non-interactive mode
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync used to print just the name and requested information for a host or
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Interactive mode is entered in the following cases:
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<div class="orderedlist"><ol class="orderedlist" type="a">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync when no arguments are given (the default name server will be used)
2ddbfa6caf303ca697458c671156508d5bc73d67vboxsync when the first argument is a hyphen (-) and the second argument is
2ddbfa6caf303ca697458c671156508d5bc73d67vboxsync the host name or Internet address of a name server.
b47e61385f3e559cd7fd86d87a2631ab63f16b10vboxsync Non-interactive mode is used when the name or Internet address of the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync host to be looked up is given as the first argument. The optional second
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync argument specifies the host name or address of a name server.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Options can also be specified on the command line if they precede the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync arguments and are prefixed with a hyphen. For example, to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync change the default query type to host information, and the initial
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync timeout to 10 seconds, type:
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncnslookup -query=hinfo -timeout=10
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync The <code class="option">-version</code> option causes
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <span class="command"><strong>nslookup</strong></span> to print the version
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync number and immediately exits.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<a name="id-1.14.6.9"></a><h2>INTERACTIVE COMMANDS</h2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <div class="variablelist"><dl class="variablelist">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">host</code> [<span class="optional">server</span>]</span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Look up information for host using the current default server or
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync using server, if specified. If host is an Internet address and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the query type is A or PTR, the name of the host is returned.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync If host is a name and does not have a trailing period, the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync search list is used to qualify the name.
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync To look up a host not in the current domain, append a period to
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync<dt><span class="term"><code class="constant">server</code> <em class="replaceable"><code>domain</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">lserver</code> <em class="replaceable"><code>domain</code></em></span></dt>
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync Change the default server to <em class="replaceable"><code>domain</code></em>; <code class="constant">lserver</code> uses the initial
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync server to look up information about <em class="replaceable"><code>domain</code></em>, while <code class="constant">server</code> uses
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the current default server. If an authoritative answer can't be
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync found, the names of servers that might have the answer are
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync<dt><span class="term"><code class="constant">root</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync not implemented
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">finger</code></span></dt>
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync not implemented
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync<dt><span class="term"><code class="constant">ls</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync not implemented
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync<dt><span class="term"><code class="constant">view</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync not implemented
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync<dt><span class="term"><code class="constant">help</code></span></dt>
3a8af9eef70d0b12e408e39680019eb1e4955b6fvboxsync not implemented
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">?</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync not implemented
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">exit</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Exits the program.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">set</code>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <em class="replaceable"><code>keyword[<span class="optional">=value</span>]</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync This command is used to change state information that affects
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the lookups. Valid keywords are:
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync<dt><span class="term"><code class="constant">all</code></span></dt>
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync Prints the current values of the frequently used
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync options to <span class="command"><strong>set</strong></span>.
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync Information about the current default
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync server and host is also printed.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">class=</code><em class="replaceable"><code>value</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Change the query class to one of:
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">IN</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the Internet class
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">CH</code></span></dt>
71e3766d2fbca9037af9a1e53c6c480808aa468cvboxsync the Chaos class
71e3766d2fbca9037af9a1e53c6c480808aa468cvboxsync<dt><span class="term"><code class="constant">HS</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the Hesiod class
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">ANY</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync The class specifies the protocol group of the information.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (Default = IN; abbreviation = cl)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>debug</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Turn on or off the display of the full response packet and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync any intermediate response packets when searching.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (Default = nodebug; abbreviation = [<span class="optional">no</span>]deb)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>d2</code></span></dt>
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync Turn debugging mode on or off. This displays more about
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync what nslookup is doing.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (Default = nod2)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">domain=</code><em class="replaceable"><code>name</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Sets the search list to <em class="replaceable"><code>name</code></em>.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>search</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync If the lookup request contains at least one period but
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync doesn't end with a trailing period, append the domain
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync names in the domain search list to the request until an
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync answer is received.
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync (Default = search)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">port=</code><em class="replaceable"><code>value</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Change the default TCP/UDP name server port to <em class="replaceable"><code>value</code></em>.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (Default = 53; abbreviation = po)
392858e6b19e8286c204be4e8fb27d54a52d3b27vboxsync<dt><span class="term"><code class="constant">querytype=</code><em class="replaceable"><code>value</code></em></span></dt>
392858e6b19e8286c204be4e8fb27d54a52d3b27vboxsync<dt><span class="term"><code class="constant">type=</code><em class="replaceable"><code>value</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Change the type of the information query.
392858e6b19e8286c204be4e8fb27d54a52d3b27vboxsync (Default = A; abbreviations = q, ty)
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync<dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>recurse</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Tell the name server to query other servers if it does not
c1e935608e3d55b6e5465b48d26b99dca51d742fvboxsync information.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (Default = recurse; abbreviation = [no]rec)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">ndots=</code><em class="replaceable"><code>number</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Set the number of dots (label separators) in a domain
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync that will disable searching. Absolute names always
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync stop searching.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">retry=</code><em class="replaceable"><code>number</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Set the number of retries to number.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant">timeout=</code><em class="replaceable"><code>number</code></em></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Change the initial timeout interval for waiting for a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync reply to number seconds.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>vc</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Always use a virtual circuit when sending requests to the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (Default = novc)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<dt><span class="term"><code class="constant"><em class="replaceable"><code>[<span class="optional">no</span>]</code></em>fail</code></span></dt>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Try the next nameserver if a nameserver responds with
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync SERVFAIL or a referral (nofail) or terminate query
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (fail) on such a response.
71e3766d2fbca9037af9a1e53c6c480808aa468cvboxsync (Default = nofail)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <span class="command"><strong>nslookup</strong></span> returns with an exit status of 1
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync if any query failed, and 0 otherwise.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<a accesskey="p" href="man.delv.html">Prev</a>�</td>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<td width="40%" align="right">�<a accesskey="n" href="man.dnssec-checkds.html">Next</a>
681c1eaae8c7d35075c17f05b257a200c407a0ecvboxsync<td width="40%" align="left" valign="top">delv�</td>
681c1eaae8c7d35075c17f05b257a200c407a0ecvboxsync<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
681c1eaae8c7d35075c17f05b257a200c407a0ecvboxsync<td width="40%" align="right" valign="top">�<span class="application">dnssec-checkds</span>
681c1eaae8c7d35075c17f05b257a200c407a0ecvboxsync<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.11.3rc2 (Extended Support Version)</p>