]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/bind9/bin/dig/nslookup.1
Update BIND to 9.9.6-P1
[FreeBSD/stable/9.git] / contrib / bind9 / bin / dig / nslookup.1
1 .\" Copyright (C) 2004-2007, 2010, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
2 .\" 
3 .\" Permission to use, copy, modify, and/or 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$
16 .\"
17 .hy 0
18 .ad l
19 .\"     Title: nslookup
20 .\"    Author: 
21 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
22 .\"      Date: January 24, 2014
23 .\"    Manual: BIND9
24 .\"    Source: BIND9
25 .\"
26 .TH "NSLOOKUP" "1" "January 24, 2014" "BIND9" "BIND9"
27 .\" disable hyphenation
28 .nh
29 .\" disable justification (adjust text to left margin only)
30 .ad l
31 .SH "NAME"
32 nslookup \- query Internet name servers interactively
33 .SH "SYNOPSIS"
34 .HP 9
35 \fBnslookup\fR [\fB\-option\fR] [name\ |\ \-] [server]
36 .SH "DESCRIPTION"
37 .PP
38 \fBNslookup\fR
39 is a program to query Internet domain name servers.
40 \fBNslookup\fR
41 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.
42 .SH "ARGUMENTS"
43 .PP
44 Interactive mode is entered in the following cases:
45 .TP 4
46 1.
47 when no arguments are given (the default name server will be used)
48 .TP 4
49 2.
50 when the first argument is a hyphen (\-) and the second argument is the host name or Internet address of a name server.
51 .sp
52 .RE
53 .PP
54 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.
55 .PP
56 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:
57 .sp
58 .RS 4
59 .nf
60 nslookup \-query=hinfo  \-timeout=10
61 .fi
62 .RE
63 .sp
64 .PP
65 The
66 \fB\-version\fR
67 option causes
68 \fBnslookup\fR
69 to print the version number and immediately exits.
70 .SH "INTERACTIVE COMMANDS"
71 .PP
72 \fBhost\fR [server]
73 .RS 4
74 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.
75 .sp
76 To look up a host not in the current domain, append a period to the name.
77 .RE
78 .PP
79 \fBserver\fR \fIdomain\fR
80 .RS 4
81 .RE
82 .PP
83 \fBlserver\fR \fIdomain\fR
84 .RS 4
85 Change the default server to
86 \fIdomain\fR;
87 \fBlserver\fR
88 uses the initial server to look up information about
89 \fIdomain\fR, while
90 \fBserver\fR
91 uses the current default server. If an authoritative answer can't be found, the names of servers that might have the answer are returned.
92 .RE
93 .PP
94 \fBroot\fR
95 .RS 4
96 not implemented
97 .RE
98 .PP
99 \fBfinger\fR
100 .RS 4
101 not implemented
102 .RE
103 .PP
104 \fBls\fR
105 .RS 4
106 not implemented
107 .RE
108 .PP
109 \fBview\fR
110 .RS 4
111 not implemented
112 .RE
113 .PP
114 \fBhelp\fR
115 .RS 4
116 not implemented
117 .RE
118 .PP
119 \fB?\fR
120 .RS 4
121 not implemented
122 .RE
123 .PP
124 \fBexit\fR
125 .RS 4
126 Exits the program.
127 .RE
128 .PP
129 \fBset\fR \fIkeyword\fR\fI[=value]\fR
130 .RS 4
131 This command is used to change state information that affects the lookups. Valid keywords are:
132 .RS 4
133 .PP
134 \fBall\fR
135 .RS 4
136 Prints the current values of the frequently used options to
137 \fBset\fR. Information about the current default server and host is also printed.
138 .RE
139 .PP
140 \fBclass=\fR\fIvalue\fR
141 .RS 4
142 Change the query class to one of:
143 .RS 4
144 .PP
145 \fBIN\fR
146 .RS 4
147 the Internet class
148 .RE
149 .PP
150 \fBCH\fR
151 .RS 4
152 the Chaos class
153 .RE
154 .PP
155 \fBHS\fR
156 .RS 4
157 the Hesiod class
158 .RE
159 .PP
160 \fBANY\fR
161 .RS 4
162 wildcard
163 .RE
164 .RE
165 .IP "" 4
166 The class specifies the protocol group of the information.
167 .sp
168 (Default = IN; abbreviation = cl)
169 .RE
170 .PP
171 \fB \fR\fB\fI[no]\fR\fR\fBdebug\fR
172 .RS 4
173 Turn on or off the display of the full response packet and any intermediate response packets when searching.
174 .sp
175 (Default = nodebug; abbreviation =
176 [no]deb)
177 .RE
178 .PP
179 \fB \fR\fB\fI[no]\fR\fR\fBd2\fR
180 .RS 4
181 Turn debugging mode on or off. This displays more about what nslookup is doing.
182 .sp
183 (Default = nod2)
184 .RE
185 .PP
186 \fBdomain=\fR\fIname\fR
187 .RS 4
188 Sets the search list to
189 \fIname\fR.
190 .RE
191 .PP
192 \fB \fR\fB\fI[no]\fR\fR\fBsearch\fR
193 .RS 4
194 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.
195 .sp
196 (Default = search)
197 .RE
198 .PP
199 \fBport=\fR\fIvalue\fR
200 .RS 4
201 Change the default TCP/UDP name server port to
202 \fIvalue\fR.
203 .sp
204 (Default = 53; abbreviation = po)
205 .RE
206 .PP
207 \fBquerytype=\fR\fIvalue\fR
208 .RS 4
209 .RE
210 .PP
211 \fBtype=\fR\fIvalue\fR
212 .RS 4
213 Change the type of the information query.
214 .sp
215 (Default = A; abbreviations = q, ty)
216 .RE
217 .PP
218 \fB \fR\fB\fI[no]\fR\fR\fBrecurse\fR
219 .RS 4
220 Tell the name server to query other servers if it does not have the information.
221 .sp
222 (Default = recurse; abbreviation = [no]rec)
223 .RE
224 .PP
225 \fBndots=\fR\fInumber\fR
226 .RS 4
227 Set the number of dots (label separators) in a domain that will disable searching. Absolute names always stop searching.
228 .RE
229 .PP
230 \fBretry=\fR\fInumber\fR
231 .RS 4
232 Set the number of retries to number.
233 .RE
234 .PP
235 \fBtimeout=\fR\fInumber\fR
236 .RS 4
237 Change the initial timeout interval for waiting for a reply to number seconds.
238 .RE
239 .PP
240 \fB \fR\fB\fI[no]\fR\fR\fBvc\fR
241 .RS 4
242 Always use a virtual circuit when sending requests to the server.
243 .sp
244 (Default = novc)
245 .RE
246 .PP
247 \fB \fR\fB\fI[no]\fR\fR\fBfail\fR
248 .RS 4
249 Try the next nameserver if a nameserver responds with SERVFAIL or a referral (nofail) or terminate query (fail) on such a response.
250 .sp
251 (Default = nofail)
252 .RE
253 .RE
254 .IP "" 4
255 .RE
256 .SH "FILES"
257 .PP
258 \fI/etc/resolv.conf\fR
259 .SH "SEE ALSO"
260 .PP
261 \fBdig\fR(1),
262 \fBhost\fR(1),
263 \fBnamed\fR(8).
264 .SH "AUTHOR"
265 .PP
266 Andrew Cherenson
267 .SH "COPYRIGHT"
268 Copyright \(co 2004\-2007, 2010, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
269 .br