418 lines
8.3 KiB
HTML
418 lines
8.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of NSLOOKUP</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>NSLOOKUP</H1>
|
|
Section: BIND9 (1)<BR>Updated: 2014-01-24<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
nslookup - query Internet name servers interactively
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>nslookup</B> [<B>-option</B>] [name | -] [server]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<B>Nslookup</B>
|
|
<DD>is a program to query Internet domain name servers.
|
|
<B>Nslookup</B>
|
|
has two modes: interactive and non-interactive. Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list of hosts in a domain. Non-interactive mode is used to print just the name and requested information for a host or domain.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>ARGUMENTS</H2>
|
|
|
|
<P>
|
|
|
|
Interactive mode is entered in the following cases:
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
1.
|
|
|
|
|
|
when no arguments are given (the default name server will be used)
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
2.
|
|
|
|
|
|
when the first argument is a hyphen (-) and the second argument is the host name or Internet address of a name server.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
Non-interactive mode is used when the name or Internet address of the host to be looked up is given as the first argument. The optional second argument specifies the host name or address of a name server.
|
|
<P>
|
|
|
|
Options can also be specified on the command line if they precede the arguments and are prefixed with a hyphen. For example, to change the default query type to host information, and the initial timeout to 10 seconds, type:
|
|
<P>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
nslookup -query=hinfo -timeout=10
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
The
|
|
<B>-version</B>
|
|
option causes
|
|
<B>nslookup</B>
|
|
to print the version number and immediately exits.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>INTERACTIVE COMMANDS</H2>
|
|
|
|
<P>
|
|
|
|
<B>host</B> [server]
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Look up information for host using the current default server or using server, if specified. If host is an Internet address and the query type is A or PTR, the name of the host is returned. If host is a name and does not have a trailing period, the search list is used to qualify the name.
|
|
<P>
|
|
To look up a host not in the current domain, append a period to the name.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>server</B> <I>domain</I>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>lserver</B> <I>domain</I>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Change the default server to
|
|
<I>domain</I>;
|
|
<B>lserver</B>
|
|
uses the initial server to look up information about
|
|
<I>domain</I>, while
|
|
<B>server</B>
|
|
uses the current default server. If an authoritative answer can't be found, the names of servers that might have the answer are returned.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>root</B>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
not implemented
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>finger</B>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
not implemented
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>ls</B>
|
|
<DL COMPACT><DT id="10"><DD>
|
|
not implemented
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>view</B>
|
|
<DL COMPACT><DT id="11"><DD>
|
|
not implemented
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>help</B>
|
|
<DL COMPACT><DT id="12"><DD>
|
|
not implemented
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>?</B>
|
|
<DL COMPACT><DT id="13"><DD>
|
|
not implemented
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>exit</B>
|
|
<DL COMPACT><DT id="14"><DD>
|
|
Exits the program.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>set</B> <I>keyword</I><I>[=value]</I>
|
|
<DL COMPACT><DT id="15"><DD>
|
|
This command is used to change state information that affects the lookups. Valid keywords are:
|
|
<P>
|
|
|
|
<B>all</B>
|
|
<DL COMPACT><DT id="16"><DD>
|
|
Prints the current values of the frequently used options to
|
|
<B>set</B>. Information about the current default server and host is also printed.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>class=</B><I>value</I>
|
|
<DL COMPACT><DT id="17"><DD>
|
|
Change the query class to one of:
|
|
<P>
|
|
|
|
<B>IN</B>
|
|
<DL COMPACT><DT id="18"><DD>
|
|
the Internet class
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>CH</B>
|
|
<DL COMPACT><DT id="19"><DD>
|
|
the Chaos class
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>HS</B>
|
|
<DL COMPACT><DT id="20"><DD>
|
|
the Hesiod class
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>ANY</B>
|
|
<DL COMPACT><DT id="21"><DD>
|
|
wildcard
|
|
</DL>
|
|
|
|
<P>
|
|
The class specifies the protocol group of the information.
|
|
<P>
|
|
(Default = IN; abbreviation = cl)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B></B><I>[no]</I><B>debug</B>
|
|
<DL COMPACT><DT id="22"><DD>
|
|
Turn on or off the display of the full response packet and any intermediate response packets when searching.
|
|
<P>
|
|
(Default = nodebug; abbreviation =
|
|
[no]deb)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B></B><I>[no]</I><B>d2</B>
|
|
<DL COMPACT><DT id="23"><DD>
|
|
Turn debugging mode on or off. This displays more about what nslookup is doing.
|
|
<P>
|
|
(Default = nod2)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>domain=</B><I>name</I>
|
|
<DL COMPACT><DT id="24"><DD>
|
|
Sets the search list to
|
|
<I>name</I>.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B></B><I>[no]</I><B>search</B>
|
|
<DL COMPACT><DT id="25"><DD>
|
|
If the lookup request contains at least one period but doesn't end with a trailing period, append the domain names in the domain search list to the request until an answer is received.
|
|
<P>
|
|
(Default = search)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>port=</B><I>value</I>
|
|
<DL COMPACT><DT id="26"><DD>
|
|
Change the default TCP/UDP name server port to
|
|
<I>value</I>.
|
|
<P>
|
|
(Default = 53; abbreviation = po)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>querytype=</B><I>value</I>
|
|
<DL COMPACT><DT id="27"><DD>
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>type=</B><I>value</I>
|
|
<DL COMPACT><DT id="28"><DD>
|
|
Change the type of the information query.
|
|
<P>
|
|
(Default = A and then AAAA; abbreviations = q, ty)
|
|
<P>
|
|
<B>Note:</B>
|
|
It is only possible to specify one query type, only the default behavior looks up both when an alternative is not specified.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B></B><I>[no]</I><B>recurse</B>
|
|
<DL COMPACT><DT id="29"><DD>
|
|
Tell the name server to query other servers if it does not have the information.
|
|
<P>
|
|
(Default = recurse; abbreviation = [no]rec)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>ndots=</B><I>number</I>
|
|
<DL COMPACT><DT id="30"><DD>
|
|
Set the number of dots (label separators) in a domain that will disable searching. Absolute names always stop searching.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>retry=</B><I>number</I>
|
|
<DL COMPACT><DT id="31"><DD>
|
|
Set the number of retries to number.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>timeout=</B><I>number</I>
|
|
<DL COMPACT><DT id="32"><DD>
|
|
Change the initial timeout interval for waiting for a reply to number seconds.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B></B><I>[no]</I><B>vc</B>
|
|
<DL COMPACT><DT id="33"><DD>
|
|
Always use a virtual circuit when sending requests to the server.
|
|
<P>
|
|
(Default = novc)
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B></B><I>[no]</I><B>fail</B>
|
|
<DL COMPACT><DT id="34"><DD>
|
|
Try the next nameserver if a nameserver responds with SERVFAIL or a referral (nofail) or terminate query (fail) on such a response.
|
|
<P>
|
|
(Default = nofail)
|
|
</DL>
|
|
|
|
<P>
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>RETURN VALUES</H2>
|
|
|
|
<P>
|
|
|
|
<B>nslookup</B>
|
|
returns with an exit status of 1 if any query failed, and 0 otherwise.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>IDN SUPPORT</H2>
|
|
|
|
<P>
|
|
|
|
If
|
|
<B>nslookup</B>
|
|
has been built with IDN (internationalized domain name) support, it can accept and display non-ASCII domain names.
|
|
<B>nslookup</B>
|
|
appropriately converts character encoding of domain name before sending a request to DNS server or displaying a reply from the server. If you'd like to turn off the IDN support for some reason, define the
|
|
<B>IDN_DISABLE</B>
|
|
environment variable. The IDN support is disabled if the variable is set when
|
|
<B>nslookup</B>
|
|
runs or when the standard output is not a tty.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<P>
|
|
|
|
/etc/resolv.conf
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+dig">dig</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+host">host</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+named">named</A></B>(8).
|
|
<A NAME="lbAK"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<P>
|
|
|
|
<B>Internet Systems Consortium, Inc.</B>
|
|
<A NAME="lbAL"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
<BR>
|
|
|
|
Copyright © 2004-2007, 2010, 2013-2020 Internet Systems Consortium, Inc. ("ISC")
|
|
<BR>
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="35"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="36"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="37"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="38"><A HREF="#lbAE">ARGUMENTS</A><DD>
|
|
<DT id="39"><A HREF="#lbAF">INTERACTIVE COMMANDS</A><DD>
|
|
<DT id="40"><A HREF="#lbAG">RETURN VALUES</A><DD>
|
|
<DT id="41"><A HREF="#lbAH">IDN SUPPORT</A><DD>
|
|
<DT id="42"><A HREF="#lbAI">FILES</A><DD>
|
|
<DT id="43"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="44"><A HREF="#lbAK">AUTHOR</A><DD>
|
|
<DT id="45"><A HREF="#lbAL">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:20 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|