Merge from vendor branch OPENSSL:
[dragonfly.git] / contrib / bind-9.3 / bin / dig / nslookup.1
1 .\" Copyright (C) 2004-2006 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.7 2006/06/29 13:02:30 marka Exp $
16 .\"
17 .hy 0
18 .ad l
19 .\"     Title: nslookup
20 .\"    Author: 
21 .\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
22 .\"      Date: Jun 30, 2000
23 .\"    Manual: BIND9
24 .\"    Source: BIND9
25 .\"
26 .TH "NSLOOKUP" "1" "Jun 30, 2000" "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 3n
46 1.
47 when no arguments are given (the default name server will be used)
48 .TP 3n
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 .RS 3n .nf nslookup \-query=hinfo \-timeout=10 .fi .RE
58 .SH "INTERACTIVE COMMANDS"
59 .TP 3n
60 host [server]
61 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.
62 .sp
63 To look up a host not in the current domain, append a period to the name.
64 .TP 3n
65 \fBserver\fR \fIdomain\fR
66 .TP 3n
67 \fBlserver\fR \fIdomain\fR
68 Change the default server to
69 \fIdomain\fR;
70 \fBlserver\fR
71 uses the initial server to look up information about
72 \fIdomain\fR, while
73 \fBserver\fR
74 uses the current default server. If an authoritative answer can't be found, the names of servers that might have the answer are returned.
75 .TP 3n
76 \fBroot\fR
77 not implemented
78 .TP 3n
79 \fBfinger\fR
80 not implemented
81 .TP 3n
82 \fBls\fR
83 not implemented
84 .TP 3n
85 \fBview\fR
86 not implemented
87 .TP 3n
88 \fBhelp\fR
89 not implemented
90 .TP 3n
91 \fB?\fR
92 not implemented
93 .TP 3n
94 \fBexit\fR
95 Exits the program.
96 .TP 3n
97 \fBset\fR \fIkeyword\fR\fI[=value]\fR
98 This command is used to change state information that affects the lookups. Valid keywords are:
99 .RS 3n
100 .TP 3n
101 \fBall\fR
102 Prints the current values of the frequently used options to
103 \fBset\fR. Information about the current default server and host is also printed.
104 .TP 3n
105 \fBclass=\fR\fIvalue\fR
106 Change the query class to one of:
107 .RS 3n
108 .TP 3n
109 \fBIN\fR
110 the Internet class
111 .TP 3n
112 \fBCH\fR
113 the Chaos class
114 .TP 3n
115 \fBHS\fR
116 the Hesiod class
117 .TP 3n
118 \fBANY\fR
119 wildcard
120 .RE
121 .IP "" 3n
122 The class specifies the protocol group of the information.
123 .sp
124 (Default = IN; abbreviation = cl)
125 .TP 3n
126 \fB\fI[no]\fR\fR\fBdebug\fR
127 Turn debugging mode on. A lot more information is printed about the packet sent to the server and the resulting answer.
128 .sp
129 (Default = nodebug; abbreviation =
130 [no]deb)
131 .TP 3n
132 \fB\fI[no]\fR\fR\fBd2\fR
133 Turn debugging mode on. A lot more information is printed about the packet sent to the server and the resulting answer.
134 .sp
135 (Default = nod2)
136 .TP 3n
137 \fBdomain=\fR\fIname\fR
138 Sets the search list to
139 \fIname\fR.
140 .TP 3n
141 \fB\fI[no]\fR\fR\fBsearch\fR
142 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.
143 .sp
144 (Default = search)
145 .TP 3n
146 \fBport=\fR\fIvalue\fR
147 Change the default TCP/UDP name server port to
148 \fIvalue\fR.
149 .sp
150 (Default = 53; abbreviation = po)
151 .TP 3n
152 \fBquerytype=\fR\fIvalue\fR
153 .TP 3n
154 \fBtype=\fR\fIvalue\fR
155 Change the type of the information query.
156 .sp
157 (Default = A; abbreviations = q, ty)
158 .TP 3n
159 \fB\fI[no]\fR\fR\fBrecurse\fR
160 Tell the name server to query other servers if it does not have the information.
161 .sp
162 (Default = recurse; abbreviation = [no]rec)
163 .TP 3n
164 \fBretry=\fR\fInumber\fR
165 Set the number of retries to number.
166 .TP 3n
167 \fBtimeout=\fR\fInumber\fR
168 Change the initial timeout interval for waiting for a reply to number seconds.
169 .TP 3n
170 \fB\fI[no]\fR\fR\fBvc\fR
171 Always use a virtual circuit when sending requests to the server.
172 .sp
173 (Default = novc)
174 .RE
175 .IP "" 3n
176 .SH "FILES"
177 .PP
178 \fI/etc/resolv.conf\fR
179 .SH "SEE ALSO"
180 .PP
181 \fBdig\fR(1),
182 \fBhost\fR(1),
183 \fBnamed\fR(8).
184 .SH "AUTHOR"
185 .PP
186 Andrew Cherenson
187 .SH "COPYRIGHT"
188 Copyright \(co 2004\-2006 Internet Systems Consortium, Inc. ("ISC")