]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind9/bin/dig/nslookup.1
This commit was generated by cvs2svn to compensate for changes in r146293,
[FreeBSD/FreeBSD.git] / contrib / bind9 / bin / dig / nslookup.1
1 .\" Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
2 .\"
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.
6 .\"
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.
14 .\"
15 .\" $Id: nslookup.1,v 1.1.6.2 2004/08/20 02:29:39 marka Exp $
16 .\"
17 .TH "NSLOOKUP" "1" "Jun 30, 2000" "BIND9" ""
18 .SH NAME
19 nslookup \- query Internet name servers interactively
20 .SH SYNOPSIS
21 .sp
22 \fBnslookup\fR [ \fB-option\fR ]  [ \fBname | -\fR ]  [ \fBserver\fR ] 
23 .SH "DESCRIPTION"
24 .PP
25 \fBNslookup\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
31 domain.
32 .SH "ARGUMENTS"
33 .PP
34 Interactive mode is entered in the following cases:
35 .IP 1. 
36 when no arguments are given (the default name server will be used)
37 .IP 2. 
38 when the first argument is a hyphen (-) and the second argument is
39 the host name or Internet address of a name server.
40 .PP
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.
44 .PP
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:
48 .PP
49 .sp
50 .nf
51 nslookup -query=hinfo  -timeout=10
52 .sp
53 .fi
54 .SH "INTERACTIVE COMMANDS"
55 .TP
56 \fBhost [server]\fR
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.
62
63 To look up a host not in the current domain, append a period to
64 the name.
65 .TP
66 \fBserver \fIdomain\fB\fR
67 .TP
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
73 returned.
74 .TP
75 \fBroot\fR
76 not implemented
77 .TP
78 \fBfinger\fR
79 not implemented
80 .TP
81 \fBls\fR
82 not implemented
83 .TP
84 \fBview\fR
85 not implemented
86 .TP
87 \fBhelp\fR
88 not implemented
89 .TP
90 \fB?\fR
91 not implemented
92 .TP
93 \fBexit\fR
94 Exits the program.
95 .TP
96 \fBset \fIkeyword[=value]\fB\fR
97 This command is used to change state information that affects
98 the lookups. Valid keywords are:
99 .RS
100 .TP
101 \fBall\fR
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.
105 .TP
106 \fBclass=\fIvalue\fB\fR
107 Change the query class to one of:
108 .RS
109 .TP
110 \fBIN\fR
111 the Internet class
112 .TP
113 \fBCH\fR
114 the Chaos class
115 .TP
116 \fBHS\fR
117 the Hesiod class
118 .TP
119 \fBANY\fR
120 wildcard
121 .RE
122 .PP
123 The class specifies the protocol group of the information.
124
125 (Default = IN; abbreviation = cl)
126 .TP
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
130 resulting answer.
131
132 (Default = nodebug; abbreviation = [no]deb)
133 .TP
134 \fB\fI[no]\fBd2\fR
135 Turn debugging mode on. A lot more information is
136 printed about the packet sent to the server and the
137 resulting answer.
138
139 (Default = nod2)
140 .TP
141 \fBdomain=\fIname\fB\fR
142 Sets the search list to \fIname\fR.
143 .TP
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
148 answer is received.
149
150 (Default = search)
151 .TP
152 \fBport=\fIvalue\fB\fR
153 Change the default TCP/UDP name server port to \fIvalue\fR.
154
155 (Default = 53; abbreviation = po)
156 .TP
157 \fBquerytype=\fIvalue\fB\fR
158 .TP
159 \fBtype=\fIvalue\fB\fR
160 Change the top of the information query.
161
162 (Default = A; abbreviations = q, ty)
163 .TP
164 \fB\fI[no]\fBrecurse\fR
165 Tell the name server to query other servers if it does not have the
166 information.
167
168 (Default = recurse; abbreviation = [no]rec)
169 .TP
170 \fBretry=\fInumber\fB\fR
171 Set the number of retries to number.
172 .TP
173 \fBtimeout=\fInumber\fB\fR
174 Change the initial timeout interval for waiting for a
175 reply to number seconds.
176 .TP
177 \fB\fI[no]\fBvc\fR
178 Always use a virtual circuit when sending requests to the server.
179
180 (Default = novc)
181 .RE
182 .SH "FILES"
183 .PP
184 \fI/etc/resolv.conf\fR
185 .SH "SEE ALSO"
186 .PP
187 \fBdig\fR(1),
188 \fBhost\fR(1),
189 \fBnamed\fR(8).
190 .SH "AUTHOR"
191 .PP
192 Andrew Cherenson