components/bind/Solaris/nslookup.1m
changeset 4438 5c17d084f39b
equal deleted inserted replaced
4437:f6ae6ead79e8 4438:5c17d084f39b
       
     1 '\" te
       
     2 .\" Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC")
       
     3 .\" Permission to use, copy, modify, and/or distribute this software for any purpose  with or without fee is hereby granted, provided that the above copyright notice  and this permission notice appear in all copies.  THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL,  DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING  FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE  USE OR PERFORMANCE OF THIS SOFTWARE.
       
     4 .\" Portions Copyright (c) 2010, Sun Microsystems, Inc. All Rights Reserved.
       
     5 .TH nslookup 1M "11 Jan 2010" "SunOS 5.12" "System Administration Commands"
       
     6 .SH NAME
       
     7 nslookup \- query Internet name servers interactively
       
     8 .SH SYNOPSIS
       
     9 .LP
       
    10 .nf
       
    11 \fBnslookup\fR [\fB-\fIoption\fR\fR] [\fIname\fR | \fB-\fR] [\fIserver\fR]
       
    12 .fi
       
    13 
       
    14 .SH DESCRIPTION
       
    15 .sp
       
    16 .LP
       
    17 The \fBnslookup\fR utility is a program to query Internet domain name servers. It 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.
       
    18 .SH PARAMETERS
       
    19 .sp
       
    20 .LP
       
    21 Interactive mode is entered in the following cases:
       
    22 .RS +4
       
    23 .TP
       
    24 1.
       
    25 No arguments are given (the default name server is used).
       
    26 .RE
       
    27 .RS +4
       
    28 .TP
       
    29 2.
       
    30 The first argument is a hyphen (-) and the second argument is the host name or Internet address of a name server.
       
    31 .RE
       
    32 .sp
       
    33 .LP
       
    34 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.
       
    35 .sp
       
    36 .LP
       
    37 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:
       
    38 .sp
       
    39 .in +2
       
    40 .nf
       
    41 nslookup -query=hinfo  -timeout=10
       
    42 .fi
       
    43 .in -2
       
    44 .sp
       
    45 
       
    46 .SH INTERACTIVE COMMANDS
       
    47 .sp
       
    48 .ne 2
       
    49 .mk
       
    50 .na
       
    51 \fB\fBhost\fR  [\fIserver\fR]\fR
       
    52 .ad
       
    53 .sp .6
       
    54 .RS 4n
       
    55 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.  To look up a host not in the current domain, append a period to the name.
       
    56 .RE
       
    57 
       
    58 .sp
       
    59 .ne 2
       
    60 .mk
       
    61 .na
       
    62 \fB\fBserver\fR \fIdomain\fR\fR
       
    63 .ad
       
    64 .br
       
    65 .na
       
    66 \fB\fBlserver\fR \fIdomain\fR\fR
       
    67 .ad
       
    68 .sp .6
       
    69 .RS 4n
       
    70 Change the default server to \fIdomain\fR; \fBlserver\fR uses the initial server to look up information about \fIdomain\fR, while \fBserver\fR uses the current default server. If an authoritative answer can't be found, the names of servers that might have the answer are returned.
       
    71 .RE
       
    72 
       
    73 .sp
       
    74 .ne 2
       
    75 .mk
       
    76 .na
       
    77 \fB\fBroot\fR\fR
       
    78 .ad
       
    79 .sp .6
       
    80 .RS 4n
       
    81 Not implemented.
       
    82 .RE
       
    83 
       
    84 .sp
       
    85 .ne 2
       
    86 .mk
       
    87 .na
       
    88 \fB\fBfinger\fR\fR
       
    89 .ad
       
    90 .sp .6
       
    91 .RS 4n
       
    92 Not implemented.
       
    93 .RE
       
    94 
       
    95 .sp
       
    96 .ne 2
       
    97 .mk
       
    98 .na
       
    99 \fB\fBls\fR\fR
       
   100 .ad
       
   101 .sp .6
       
   102 .RS 4n
       
   103 Not implemented.
       
   104 .RE
       
   105 
       
   106 .sp
       
   107 .ne 2
       
   108 .mk
       
   109 .na
       
   110 \fB\fBview\fR\fR
       
   111 .ad
       
   112 .sp .6
       
   113 .RS 4n
       
   114 Not implemented.
       
   115 .RE
       
   116 
       
   117 .sp
       
   118 .ne 2
       
   119 .mk
       
   120 .na
       
   121 \fB\fBhelp\fR\fR
       
   122 .ad
       
   123 .sp .6
       
   124 .RS 4n
       
   125 Not implemented.
       
   126 .RE
       
   127 
       
   128 .sp
       
   129 .ne 2
       
   130 .mk
       
   131 .na
       
   132 \fB\fB?\fR\fR
       
   133 .ad
       
   134 .sp .6
       
   135 .RS 4n
       
   136 Not implemented.
       
   137 .RE
       
   138 
       
   139 .sp
       
   140 .ne 2
       
   141 .mk
       
   142 .na
       
   143 \fB\fBexit\fR\fR
       
   144 .ad
       
   145 .sp .6
       
   146 .RS 4n
       
   147 Exits the program.
       
   148 .RE
       
   149 
       
   150 .sp
       
   151 .ne 2
       
   152 .mk
       
   153 .na
       
   154 \fB\fBset\fR \fIkeyword\fR[=\fIvalue\fR]\fR
       
   155 .ad
       
   156 .sp .6
       
   157 .RS 4n
       
   158 This command is used to change state information that affects the lookups. Valid keywords are:
       
   159 .sp
       
   160 .ne 2
       
   161 .mk
       
   162 .na
       
   163 \fB\fBall\fR\fR
       
   164 .ad
       
   165 .sp .6
       
   166 .RS 4n
       
   167 Prints the current values of the frequently used options to \fBset\fR. Information about the current default server and host is also printed.
       
   168 .RE
       
   169 
       
   170 .sp
       
   171 .ne 2
       
   172 .mk
       
   173 .na
       
   174 \fB\fBclass=\fR\fIvalue\fR\fR
       
   175 .ad
       
   176 .sp .6
       
   177 .RS 4n
       
   178 Change the query class to one of: 
       
   179 .sp
       
   180 .ne 2
       
   181 .mk
       
   182 .na
       
   183 \fB\fBIN\fR\fR
       
   184 .ad
       
   185 .sp .6
       
   186 .RS 4n
       
   187 the Internet class
       
   188 .RE
       
   189 
       
   190 .sp
       
   191 .ne 2
       
   192 .mk
       
   193 .na
       
   194 \fB\fBCH\fR\fR
       
   195 .ad
       
   196 .sp .6
       
   197 .RS 4n
       
   198 the Chaos class
       
   199 .RE
       
   200 
       
   201 .sp
       
   202 .ne 2
       
   203 .mk
       
   204 .na
       
   205 \fB\fBHS\fR\fR
       
   206 .ad
       
   207 .sp .6
       
   208 .RS 4n
       
   209 the Hesiod class
       
   210 .RE
       
   211 
       
   212 .sp
       
   213 .ne 2
       
   214 .mk
       
   215 .na
       
   216 \fB\fBANY\fR\fR
       
   217 .ad
       
   218 .sp .6
       
   219 .RS 4n
       
   220 wildcard
       
   221 .RE
       
   222 
       
   223 The class specifies the protocol group of the information.
       
   224 .sp
       
   225 (Default = \fBIN\fR; abbreviation = \fBcl\fR)
       
   226 .RE
       
   227 
       
   228 .sp
       
   229 .ne 2
       
   230 .mk
       
   231 .na
       
   232 \fB[\fBno\fR]\fBdebug\fR\fR
       
   233 .ad
       
   234 .sp .6
       
   235 .RS 4n
       
   236 Turn on or off the display of the full response packet and any intermediate response packets when searching.
       
   237 .sp
       
   238 (Default = \fBnodebug\fR; abbreviation = [\fBno\fR]\fBdeb\fR)
       
   239 .RE
       
   240 
       
   241 .sp
       
   242 .ne 2
       
   243 .mk
       
   244 .na
       
   245 \fB[\fBno\fR]\fBd2\fR\fR
       
   246 .ad
       
   247 .sp .6
       
   248 .RS 4n
       
   249 Turn debugging mode on or off. This displays more about what \fBnslookup\fR is doing.
       
   250 .sp
       
   251 (Default = \fBnod2\fR)
       
   252 .RE
       
   253 
       
   254 .sp
       
   255 .ne 2
       
   256 .mk
       
   257 .na
       
   258 \fB\fBdomain=\fR\fIname\fR\fR
       
   259 .ad
       
   260 .sp .6
       
   261 .RS 4n
       
   262 Sets the search list to \fIname\fR.
       
   263 .RE
       
   264 
       
   265 .sp
       
   266 .ne 2
       
   267 .mk
       
   268 .na
       
   269 \fB[\fBno\fR]\fBsearch\fR\fR
       
   270 .ad
       
   271 .sp .6
       
   272 .RS 4n
       
   273 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.
       
   274 .sp
       
   275 (Default = \fBsearch\fR)
       
   276 .RE
       
   277 
       
   278 .sp
       
   279 .ne 2
       
   280 .mk
       
   281 .na
       
   282 \fB\fBport=\fR\fIvalue\fR\fR
       
   283 .ad
       
   284 .sp .6
       
   285 .RS 4n
       
   286 Change the default TCP/UDP name server port to \fIvalue\fR.
       
   287 .sp
       
   288 (Default = \fB53\fR; abbreviation = \fBpo\fR)
       
   289 .RE
       
   290 
       
   291 .sp
       
   292 .ne 2
       
   293 .mk
       
   294 .na
       
   295 \fB\fBquerytype=\fR\fIvalue\fR\fR
       
   296 .ad
       
   297 .br
       
   298 .na
       
   299 \fB\fBtype=\fR\fIvalue\fR\fR
       
   300 .ad
       
   301 .sp .6
       
   302 .RS 4n
       
   303 Change the top of the information query.
       
   304 .sp
       
   305 (Default = \fBA\fR; abbreviations = \fBq\fR, \fBty\fR)
       
   306 .RE
       
   307 
       
   308 .sp
       
   309 .ne 2
       
   310 .mk
       
   311 .na
       
   312 \fB[\fBno\fR]\fBrecurse\fR\fR
       
   313 .ad
       
   314 .sp .6
       
   315 .RS 4n
       
   316 Tell the name server to query other servers if it does not have the information.  (Default = \fBrecurse\fR; abbreviation = [\fBno\fR]\fBrec\fR)
       
   317 .RE
       
   318 
       
   319 .sp
       
   320 .ne 2
       
   321 .mk
       
   322 .na
       
   323 \fB\fBretry=\fR\fInumber\fR\fR
       
   324 .ad
       
   325 .sp .6
       
   326 .RS 4n
       
   327 Set the number of retries to number.
       
   328 .RE
       
   329 
       
   330 .sp
       
   331 .ne 2
       
   332 .mk
       
   333 .na
       
   334 \fB\fBtimeout=\fR\fInumber\fR\fR
       
   335 .ad
       
   336 .sp .6
       
   337 .RS 4n
       
   338 Change the initial timeout interval for waiting for a reply to number seconds.
       
   339 .RE
       
   340 
       
   341 .sp
       
   342 .ne 2
       
   343 .mk
       
   344 .na
       
   345 \fB[\fBno\fR]\fBvc\fR\fR
       
   346 .ad
       
   347 .sp .6
       
   348 .RS 4n
       
   349 Always use a virtual circuit when sending requests to the server.
       
   350 .sp
       
   351 (Default = \fBnovc\fR)
       
   352 .RE
       
   353 
       
   354 .sp
       
   355 .ne 2
       
   356 .mk
       
   357 .na
       
   358 \fB[\fBno\fR]\fBfail\fR\fR
       
   359 .ad
       
   360 .sp .6
       
   361 .RS 4n
       
   362 Try the next nameserver if a nameserver responds with \fBSERVFAIL\fR or a referral (\fBnofail\fR) or terminate query (\fBfail\fR) on such a response.
       
   363 .sp
       
   364 (Default = \fBnofail\fR)
       
   365 .RE
       
   366 
       
   367 .RE
       
   368 
       
   369 .SH FILES
       
   370 .sp
       
   371 .ne 2
       
   372 .mk
       
   373 .na
       
   374 \fB\fB/etc/resolv.conf\fR\fR
       
   375 .ad
       
   376 .sp .6
       
   377 .RS 4n
       
   378 resolver configuration file
       
   379 .RE
       
   380 
       
   381 .SH ATTRIBUTES
       
   382 .sp
       
   383 .LP
       
   384 See \fBattributes\fR(5) for descriptions of the following attributes:
       
   385 .sp
       
   386 
       
   387 .sp
       
   388 .TS
       
   389 tab() box;
       
   390 cw(2.75i) |cw(2.75i) 
       
   391 lw(2.75i) |lw(2.75i) 
       
   392 .
       
   393 ATTRIBUTE TYPEATTRIBUTE VALUE
       
   394 _
       
   395 Availabilitynetwork/dns/bind
       
   396 _
       
   397 Interface StabilityVolatile
       
   398 .TE
       
   399 
       
   400 .SH SEE ALSO
       
   401 .sp
       
   402 .LP
       
   403 \fBdig\fR(1M), \fBhost\fR(1M), \fBnamed\fR(1M), \fBattributes\fR(5)
       
   404 .sp
       
   405 .LP
       
   406 See the BIND 9 \fIAdministrator's Reference Manual\fR. As of the date of publication of this man page, this document is available at https://www.isc.org/software/bind/documentation\&.
       
   407 .SH NOTES
       
   408 .sp
       
   409 .LP
       
   410 BIND 9 \fBnslookup\fR is deprecated and not as full featured as its BIND 8 version. For more features and functionality refer to \fBdig\fR(1M).
       
   411 .sp
       
   412 .LP
       
   413 \fBnslookup\fR and \fBdig\fR(1M) now report "Not Implemented" as \fBNOTIMP\fR rather  than \fBNOTIMPL\fR. This will have impact on scripts that are looking for \fBNOTIMPL\fR.