"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/doc/man/nslookup.1in" (4 Sep 2020, 7091 Bytes) of package /linux/misc/dns/bind9/9.17.5/bind-9.17.5.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "nslookup.1in": 9.17.2_vs_9.17.3.

    1 .\" Man page generated from reStructuredText.
    2 .
    3 .TH "NSLOOKUP" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
    4 .SH NAME
    5 nslookup \- query Internet name servers interactively
    6 .
    7 .nr rst2man-indent-level 0
    8 .
    9 .de1 rstReportMargin
   10 \\$1 \\n[an-margin]
   11 level \\n[rst2man-indent-level]
   12 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
   13 -
   14 \\n[rst2man-indent0]
   15 \\n[rst2man-indent1]
   16 \\n[rst2man-indent2]
   17 ..
   18 .de1 INDENT
   19 .\" .rstReportMargin pre:
   20 . RS \\$1
   21 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
   22 . nr rst2man-indent-level +1
   23 .\" .rstReportMargin post:
   24 ..
   25 .de UNINDENT
   26 . RE
   27 .\" indent \\n[an-margin]
   28 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
   29 .nr rst2man-indent-level -1
   30 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
   31 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
   32 ..
   33 .SH SYNOPSIS
   34 .sp
   35 \fBnslookup\fP [\-option] [name | \-] [server]
   36 .SH DESCRIPTION
   37 .sp
   38 \fBnslookup\fP is a program to query Internet domain name servers.
   39 \fBnslookup\fP has two modes: interactive and non\-interactive. Interactive
   40 mode allows the user to query name servers for information about various
   41 hosts and domains or to print a list of hosts in a domain.
   42 Non\-interactive mode prints just the name and requested
   43 information for a host or domain.
   44 .SH ARGUMENTS
   45 .sp
   46 Interactive mode is entered in the following cases:
   47 .INDENT 0.0
   48 .IP a. 3
   49 when no arguments are given (the default name server is used);
   50 .IP b. 3
   51 when the first argument is a hyphen (\-) and the second argument is
   52 the host name or Internet address of a name server.
   53 .UNINDENT
   54 .sp
   55 Non\-interactive mode is used when the name or Internet address of the
   56 host to be looked up is given as the first argument. The optional second
   57 argument specifies the host name or address of a name server.
   58 .sp
   59 Options can also be specified on the command line if they precede the
   60 arguments and are prefixed with a hyphen. For example, to change the
   61 default query type to host information, with an initial timeout of 10
   62 seconds, type:
   63 .INDENT 0.0
   64 .INDENT 3.5
   65 .sp
   66 .nf
   67 .ft C
   68 nslookup \-query=hinfo  \-timeout=10
   69 .ft P
   70 .fi
   71 .UNINDENT
   72 .UNINDENT
   73 .sp
   74 The \fB\-version\fP option causes \fBnslookup\fP to print the version number
   75 and immediately exit.
   76 .SH INTERACTIVE COMMANDS
   77 .INDENT 0.0
   78 .TP
   79 .B \fBhost [server]\fP
   80 This command looks up information for \fBhost\fP using the current default server or
   81 using \fBserver\fP, if specified. If \fBhost\fP is an Internet address and the
   82 query type is A or PTR, the name of the host is returned. If \fBhost\fP is
   83 a name and does not have a trailing period (\fB\&.\fP), the search list is used
   84 to qualify the name.
   85 .sp
   86 To look up a host not in the current domain, append a period to the
   87 name.
   88 .TP
   89 .B \fBserver domain\fP | \fBlserver domain\fP
   90 These commands change the default server to \fBdomain\fP; \fBlserver\fP uses the initial
   91 server to look up information about \fBdomain\fP, while \fBserver\fP uses the
   92 current default server. If an authoritative answer cannot be found,
   93 the names of servers that might have the answer are returned.
   94 .TP
   95 .B \fBroot\fP
   96 This command is not implemented.
   97 .TP
   98 .B \fBfinger\fP
   99 This command is not implemented.
  100 .TP
  101 .B \fBls\fP
  102 This command is not implemented.
  103 .TP
  104 .B \fBview\fP
  105 This command is not implemented.
  106 .TP
  107 .B \fBhelp\fP
  108 This command is not implemented.
  109 .TP
  110 .B \fB?\fP
  111 This command is not implemented.
  112 .TP
  113 .B \fBexit\fP
  114 This command exits the program.
  115 .TP
  116 .B \fBset keyword[=value]\fP
  117 This command is used to change state information that affects the
  118 lookups. Valid keywords are:
  119 .INDENT 7.0
  120 .TP
  121 .B \fBall\fP
  122 This keyword prints the current values of the frequently used options to
  123 \fBset\fP\&. Information about the current default server and host is
  124 also printed.
  125 .TP
  126 .B \fBclass=value\fP
  127 This keyword changes the query class to one of:
  128 .INDENT 7.0
  129 .TP
  130 .B \fBIN\fP
  131 the Internet class
  132 .TP
  133 .B \fBCH\fP
  134 the Chaos class
  135 .TP
  136 .B \fBHS\fP
  137 the Hesiod class
  138 .TP
  139 .B \fBANY\fP
  140 wildcard
  141 .UNINDENT
  142 .sp
  143 The class specifies the protocol group of the information. The default
  144 is \fBIN\fP; the abbreviation for this keyword is \fBcl\fP\&.
  145 .TP
  146 .B \fBnodebug\fP
  147 This keyword turns on or off the display of the full response packet, and any
  148 intermediate response packets, when searching. The default for this keyword is
  149 \fBnodebug\fP; the abbreviation for this keyword is \fB[no]deb\fP\&.
  150 .TP
  151 .B \fBnod2\fP
  152 This keyword turns debugging mode on or off. This displays more about what
  153 nslookup is doing. The default is \fBnod2\fP\&.
  154 .TP
  155 .B \fBdomain=name\fP
  156 This keyword sets the search list to \fBname\fP\&.
  157 .TP
  158 .B \fBnosearch\fP
  159 If the lookup request contains at least one period, but does not end
  160 with a trailing period, this keyword appends the domain names in the domain
  161 search list to the request until an answer is received. The default is \fBsearch\fP\&.
  162 .TP
  163 .B \fBport=value\fP
  164 This keyword changes the default TCP/UDP name server port to \fBvalue\fP from
  165 its default, port 53. The abbreviation for this keyword is \fBpo\fP\&.
  166 .TP
  167 .B \fBquerytype=value\fP | \fBtype=value\fP
  168 This keyword changes the type of the information query to \fBvalue\fP\&. The
  169 defaults are A and then AAAA; the abbreviations for these keywords are
  170 \fBq\fP and \fBty\fP\&.
  171 .sp
  172 Please note that it is only possible to specify one query type. Only the default
  173 behavior looks up both when an alternative is not specified.
  174 .TP
  175 .B \fBnorecurse\fP
  176 This keyword tells the name server to query other servers if it does not have
  177 the information. The default is \fBrecurse\fP; the abbreviation for this
  178 keyword is \fB[no]rec\fP\&.
  179 .TP
  180 .B \fBndots=number\fP
  181 This keyword sets the number of dots (label separators) in a domain that
  182 disables searching. Absolute names always stop searching.
  183 .TP
  184 .B \fBretry=number\fP
  185 This keyword sets the number of retries to \fBnumber\fP\&.
  186 .TP
  187 .B \fBtimeout=number\fP
  188 This keyword changes the initial timeout interval to wait for a reply to
  189 \fBnumber\fP, in seconds.
  190 .TP
  191 .B \fBnovc\fP
  192 This keyword indicates that a virtual circuit should always be used when sending requests to the server.
  193 \fBnovc\fP is the default.
  194 .TP
  195 .B \fBnofail\fP
  196 This keyword tries the next nameserver if a nameserver responds with SERVFAIL or
  197 a referral (nofail), or terminates the query (fail) on such a response. The
  198 default is \fBnofail\fP\&.
  199 .UNINDENT
  200 .UNINDENT
  201 .SH RETURN VALUES
  202 .sp
  203 \fBnslookup\fP returns with an exit status of 1 if any query failed, and 0
  204 otherwise.
  205 .SH IDN SUPPORT
  206 .sp
  207 If \fBnslookup\fP has been built with IDN (internationalized domain name)
  208 support, it can accept and display non\-ASCII domain names. \fBnslookup\fP
  209 appropriately converts character encoding of a domain name before sending
  210 a request to a DNS server or displaying a reply from the server.
  211 To turn off IDN support, define the \fBIDN_DISABLE\fP
  212 environment variable. IDN support is disabled if the variable is set
  213 when \fBnslookup\fP runs, or when the standard output is not a tty.
  214 .SH FILES
  215 .sp
  216 \fB/etc/resolv.conf\fP
  217 .SH SEE ALSO
  218 .sp
  219 \fBdig(1)\fP, \fBhost(1)\fP, \fBnamed(8)\fP\&.
  220 .SH AUTHOR
  221 Internet Systems Consortium
  222 .SH COPYRIGHT
  223 2020, Internet Systems Consortium
  224 .\" Generated by docutils manpage writer.
  225 .