host.1

来自「早期freebsd实现」· 1 代码 · 共 511 行 · 第 1/2 页

1
511 行
字号
PTR resource record outcome)..TP.B \-qbe quiet and suppress various warning messages (the ones precededby " !!! ").Serious error messages (preceded by " *** ") are never suppressed..SH OTHER OPTIONSThe following options are used only in special circumstances..TP 4.BI \-c " class"allows you to specify a particular resource record class.Supported are\fBIN\fP, \fBINTERNET\fP, \fBCS\fP, \fBCSNET\fP, \fBCH\fP, \fBCHAOS\fP,\fBHS\fP, \fBHESIOD\fP, and the wildcard \fBANY\fP or \fB*\fP.The default class is \fBIN\fP..TP.B \-mis equivalent to \fB\-t MAILB\fP, which filtersany of types \fBMB\fP, \fBMR\fP, \fBMG\fP, or \fBMINFO\fP.In addition, \fBMR\fP and \fBMG\fP records will be recursivelyexpanded into \fBMB\fP records..TP.B \-rcauses nameserver recursion to be turned off in the request.This means that the contacted nameserver will return only datait has currently cached in its own database.It will not ask other servers to retrieve the information.Note that nameserver recursion is always turned off when checkingSOA records using the \fB\-C\fP option. Authoritative serversshould have all relevant information available..TP.B \-RNormally querynames are assumed to be fully qualified and aretried as such, unless it is a single name, which is always tried(and only once) in the default domain.This option simulates the default BIND behaviour by qualifyingany specified name by repeatedly adding search domains, withthe exception that the search terminates immediately if the nameexists but does not have the desired querytype.The default search domains are constructed from the default domainby repeatedly peeling off the first component, until a final domainwith only one dot remains..TP.B \-uforces the use of virtual circuits instead of datagrams when issuingnameserver queries. This is slower, but potentially more reliable.Note that a virtual circuit is automatically chosen in case a queryexceeds the maximum datagram packet size. Also if a datagram answerturns out to be truncated, the query is retried using virtual circuit.A zone transfer is always done via a virtual circuit..TP.B \-wcauses the program to retry forever if the response to a regular querytimes out. Normally it will time out after some 10 seconds pernameserver address tried..TP.BI \-s " seconds"specifies a new nameserver timeout value. The program will waitfor a nameserver reply in two attempts of this number of seconds.Normally it does 2 attempts of 5 seconds per nameserver address tried.The actual timeout algorithm is slightly more complicated, extendingthe timeout value dynamically depending on the number of tries andthe number of nameserver addresses..TP.B \-Vprints just the version number of the \fBhost\fP program, and exits..SH DEFAULT OPTIONSDefault options and parameters can be preset in an environmentvariable \fBHOST_DEFAULTS\fP using the same syntax as on the commandline. They will be evaluated before the command line arguments..SH QUERYTYPESThe following querytypes (resource record types) are supported.Indicated within parentheses are the various kinds of data fields..TP 10.B AHost address (dotted quad).TP.B NSAuthoritative nameserver (domain name).TP.B MDMail destination (domain name).TP.B MFMail forwarder (domain name).TP.B CNAMECanonical name for an alias (domain name).TP.B SOAMarks the start of a zone of authority(domain name of primary, domain name of hostmaster,serial, refresh, retry, expiration, default ttl).TP.B MBMailbox domain name (domain name).TP.B MGMail group member (domain name).TP.B MRMail rename domain name (domain name).TP.B NULLNull resource record (no format or data).TP.B WKSWell-known service description (dotted quad, protocol name, list of services).TP.B PTRDomain name pointer (domain name).TP.B HINFOHost information (CPU type string, OS type string).TP.B MINFOMailbox or mail list information (request domain name, error domain name).TP.B MXMail exchanger (preference value, domain name).TP.B TXTDescriptive text (string).TP.B UINFOUser information (string).TP.B UIDUser identification (number).TP.B GIDGroup identification (number).TP.B UNSPECUnspecified binary data (data).TP.B ANYMatches any of the above information..TP.B MAILBMatches any of types \fBMB\fP, \fBMR\fP, \fBMG\fP, or \fBMINFO\fP..TP.B MAILAMatches any of types \fBMD\fP, or \fBMF\fP..PPThe following types have been defined recently in RFC1183, butare not yet in general use. They are recognized by this program..TP 10.B RPResponsible person (domain name for MB, domain name for TXT).TP.B AFSDBAFS database location (type, domain name).TP.B X25X25 address (address string).TP.B ISDNISDN address (address string, optional subaddress string).TP.B RTRoute through host (preference value, domain name).SH STATUS MESSAGESThe following are status messages that are printed to showthe result of a particular query. The name of an explicitserver, if specified, may be included. If a special classis specified, it is also shown..TP 4Nameserver not runningThe contacted server host does not have a nameserver running..TPNameserver not respondingThe nameserver at the contacted server host did not give a replywithin the specified time frame..TPNameserver not reachableThe network route to the intended server host is blocked..TP\fIname\fP does not exist (Authoritative answer)The queryname does definitely not exist at all..TP\fIname\fP does not exist, try againThe queryname does not exist, but the answer was not authoritative,so it is still undecided..TP\fIname\fP \fItype\fP record not found, try againSome intermediate nameserver failure, e.g. timeout..TP\fIname\fP \fItype\fP record not found, no recoverySome irrecoverable format error, or server refusal..TP\fIname\fP has no \fItype\fP record (Authoritative answer)The queryname is valid, but the specified type does not exist.This status is here returned only in case authoritative..TP\fIname\fP \fItype\fP record currently not presentThe specified type does not exist, but we don't know whetherthe queryname is valid or not. The answer was not authoritative.Perhaps recursion was off, and no data was cached locally..TP\fIzone\fP has lame delegation to \fIserver\fPIf we query a supposedly authoritative nameserver for the SOA recordof a zone, the information should be available and the answer shouldbe authoritative. If not, a lame delegation is flagged. This is alsodone if the server turns out not to exist at all. Ditto if we ask fora zone transfer and the server cannot provide it..SH WARNING AND ERROR MESSAGESMiscellaneous warning messages may be generated.They are preceded by " !!! " and indicate some non-fatal condition.These messages can be suppressed with the \-q command line option.Error messages are preceded by " *** " and indicate a serious problem.Those messages cannot be suppressed..SH EXIT STATUSThe program returns a zero exit status if the requested informationcould be retrieved successfully, or in case zone listings or SOAchecks were performed without any serious error.Otherwise it returns a non-zero exit status..SH CUSTOMIZING HOST NAME LOOKUPIn general, if the name supplied by the user does not have any dotsin it, a default domain is appended to the end. This domain is usuallydefined in the \fB/etc/resolv.conf\fP file. If not, it is derived bytaking the local hostname and taking everything after its first dot..PPThe user can override this, and specify a different default domain,by defining it in the environment variable \fILOCALDOMAIN\fP..PPIn addition, the user can supply his own single-word abbreviationsfor host names. They should be in a file consisting of one line perabbreviation. Each line contains an abbreviation, white space, andthen the fully qualified host name. The name of this file must bespecified in the environment variable \fIHOSTALIASES\fP..SH SPECIAL CONSIDERATIONSThe complete set of resource record information for a domain nameis available from an authoritative nameserver only. Therefore,if you query another server with the "-a" option, only a subsetof the data may be presented, since this option asks for any datathat the latter server currently knows about, not all data thatmay possibly exist.  Note that the "-v" option shows whether ananswer is authoritative or not..PPWhen listing a zone with the "-l" option, information will be fetchedfrom authoritative nameservers for that zone. This is implemented bydoing a complete zone transfer and then filtering out the informationtheat you have asked for.Note that direct contact with such nameservers must be possible forthis option to work.This option should be used with caution. Servers may be configuredto refuse zone transfers if they are flooded with requests..SH AUTHORThis program is originally from Rutgers University..brRewritten by Eric Wassenaar, Nikhef-H, <e07@nikhef.nl>.SH "SEE ALSO"named(8), resolv.conf(5), resolver(3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?