2 - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
5 - Permission to use, copy, modify, and distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
18 <!-- $Id: host.html,v 1.4.2.2 2004/03/15 04:44:38 marka Exp $ -->
26 CONTENT="Modular DocBook HTML Stylesheet Version 1.73
47 >host -- DNS lookup utility</DIV
49 CLASS="REFSYNOPSISDIV"
102 >] {name} [server]</P
116 is a simple utility for performing DNS lookups.
117 It is normally used to convert names to IP addresses and vice versa.
118 When no arguments or options are given,
123 prints a short summary of its command line arguments and options.</P
130 > is the domain name that is to be looked
131 up. It can also be a dotted-decimal IPv4 address or a colon-delimited
132 IPv6 address, in which case <B
136 perform a reverse lookup for that address.
142 > is an optional argument which is either
143 the name or IP address of the name server that <B
147 should query instead of the server or servers listed in
150 >/etc/resolv.conf</TT
156 > (all) option is equivalent to setting the
160 > option and asking <B
164 a query of type ANY.</P
173 will attempt to display the SOA records for zone
179 > from all the listed authoritative name
180 servers for that zone. The list of name servers is defined by the NS
181 records that are found for the zone.</P
186 > option instructs to make a DNS query of class
192 >. This can be used to lookup Hesiod or
193 Chaosnet class resource records. The default class is IN (Internet).</P
195 >Verbose output is generated by <B
205 > option is used. The two
206 options are equivalent. They have been provided for backwards
207 compatibility. In previous versions, the <TT
211 switched on debugging traces and <TT
217 >List mode is selected by the <TT
224 > perform a zone transfer for zone
230 >. The argument is provided for
231 compatibility with older implementations. This option is equivalent
232 to making a query of type AXFR.</P
238 option specifies that reverse lookups of IPv6 addresses should
239 use the IP6.INT domain and "nibble" labels as defined in RFC1886.
240 The default is to use IP6.ARPA and binary labels as defined in RFC2874.</P
245 > option sets the number of dots that have to be
251 > for it to be considered absolute. The
252 default value is that defined using the ndots statement in
255 >/etc/resolv.conf</TT
256 >, or 1 if no ndots statement is
257 present. Names with fewer dots are interpreted as relative names and
258 will be searched for in the domains listed in the <SPAN
268 >/etc/resolv.conf</TT
271 >The number of UDP retries for a lookup can be changed with the
284 > will repeat a query that does
285 not get answered. The default number of retries is 1. If
291 > is negative or zero, the number of
292 retries will default to 1.</P
294 >Non-recursive queries can be made via the <TT
298 Setting this option clears the <SPAN
302 desired — bit in the query which <B
306 This should mean that the name server receiving the query will not
307 attempt to resolve <TT
320 the behaviour of a name server by making non-recursive queries and
321 expecting to receive answers to those queries that are usually
322 referrals to other name servers.</P
327 > uses UDP when making queries. The
331 > option makes it use a TCP connection when querying
332 the name server. TCP will be automatically selected for queries that
333 require it, such as zone transfer (AXFR) requests.</P
338 > option is used to select the query type.
344 > can be any recognised query type: CNAME,
345 NS, SOA, SIG, KEY, AXFR, etc. When no query type is specified,
349 > automatically selects an appropriate query
350 type. By default it looks for A records, but if the
354 > option was given, queries will be made for SOA
360 > is a dotted-decimal IPv4
361 address or colon-delimited IPv6 address, <B
365 query for PTR records.</P
367 >The time to wait for a reply can be controlled through the
393 is less than one, the wait interval is set to one second. When the
401 effectively wait forever for a reply. The time to wait for a response
402 will be set to the number of seconds given by the hardware's maximum
403 value for an integer quantity.</P
415 >/etc/resolv.conf</TT
429 CLASS="REFENTRYTITLE"
436 CLASS="REFENTRYTITLE"