ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/vendor/bind/9.9.9p4/bin/dig/nslookup.1
Revision: 9210
Committed: Sat Nov 5 14:35:34 2016 UTC (7 years, 6 months ago) by laffer1
File size: 7630 byte(s)
Log Message:
tag

File Contents

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