1 .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8 .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10 .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 .\" PERFORMANCE OF THIS SOFTWARE.
15 .\" $Id: nslookup.1,v 1.1.6.2 2004/08/20 02:29:39 marka Exp $
17 .TH "NSLOOKUP" "1" "Jun 30, 2000" "BIND9" ""
19 nslookup \- query Internet name servers interactively
22 \fBnslookup\fR [ \fB-option\fR ] [ \fBname | -\fR ] [ \fBserver\fR ]
26 is a program to query Internet domain name servers. \fBNslookup\fR
27 has two modes: interactive and non-interactive. Interactive mode allows
28 the user to query name servers for information about various hosts and
29 domains or to print a list of hosts in a domain. Non-interactive mode is
30 used to print just the name and requested information for a host or
34 Interactive mode is entered in the following cases:
36 when no arguments are given (the default name server will be used)
38 when the first argument is a hyphen (-) and the second argument is
39 the host name or Internet address of a name server.
41 Non-interactive mode is used when the name or Internet address of the
42 host to be looked up is given as the first argument. The optional second
43 argument specifies the host name or address of a name server.
45 Options can also be specified on the command line if they precede the
46 arguments and are prefixed with a hyphen. For example, to
47 change the default query type to host information, and the initial timeout to 10 seconds, type:
51 nslookup -query=hinfo -timeout=10
54 .SH "INTERACTIVE COMMANDS"
57 Look up information for host using the current default server or
58 using server, if specified. If host is an Internet address and
59 the query type is A or PTR, the name of the host is returned.
60 If host is a name and does not have a trailing period, the
61 search list is used to qualify the name.
63 To look up a host not in the current domain, append a period to
66 \fBserver \fIdomain\fB\fR
68 \fBlserver \fIdomain\fB\fR
69 Change the default server to \fIdomain\fR; lserver uses the initial
70 server to look up information about \fIdomain\fR, while server uses
71 the current default server. If an authoritative answer can't be
72 found, the names of servers that might have the answer are
96 \fBset \fIkeyword[=value]\fB\fR
97 This command is used to change state information that affects
98 the lookups. Valid keywords are:
102 Prints the current values of the frequently used
103 options to \fBset\fR. Information about the current default
104 server and host is also printed.
106 \fBclass=\fIvalue\fB\fR
107 Change the query class to one of:
123 The class specifies the protocol group of the information.
125 (Default = IN; abbreviation = cl)
127 \fB\fI[no]\fBdebug\fR
128 Turn debugging mode on. A lot more information is
129 printed about the packet sent to the server and the
132 (Default = nodebug; abbreviation = [no]deb)
135 Turn debugging mode on. A lot more information is
136 printed about the packet sent to the server and the
141 \fBdomain=\fIname\fB\fR
142 Sets the search list to \fIname\fR.
144 \fB\fI[no]\fBsearch\fR
145 If the lookup request contains at least one period but
146 doesn't end with a trailing period, append the domain
147 names in the domain search list to the request until an
152 \fBport=\fIvalue\fB\fR
153 Change the default TCP/UDP name server port to \fIvalue\fR.
155 (Default = 53; abbreviation = po)
157 \fBquerytype=\fIvalue\fB\fR
159 \fBtype=\fIvalue\fB\fR
160 Change the top of the information query.
162 (Default = A; abbreviations = q, ty)
164 \fB\fI[no]\fBrecurse\fR
165 Tell the name server to query other servers if it does not have the
168 (Default = recurse; abbreviation = [no]rec)
170 \fBretry=\fInumber\fB\fR
171 Set the number of retries to number.
173 \fBtimeout=\fInumber\fB\fR
174 Change the initial timeout interval for waiting for a
175 reply to number seconds.
178 Always use a virtual circuit when sending requests to the server.
184 \fI/etc/resolv.conf\fR