⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doc.1

📁 早期freebsd实现
💻 1
字号:
.\".\"   Distributed with: Doc - Version 2.0 (8/22/90).\"   USC Information Sciences Institute.\".\"	doc.1	2.0 (USC-ISI) 8/22/90.TH DOC 8 "August 22, 1990".SH NAMEdoc \- diagnose unhealthy DNS domains.SH SYNOPSIS.B doc.RI [-p].RI [-e][-w][-v][-d].I domain_name.RI [parent_domain_name].SH DESCRIPTION\fIDoc\fP is an automated tool for verifying (to an extent) that adomain is configured and functioning correctly.  The only requiredparameter is the valid domain name of anexisting domain. Example:.sp 1		doc isi.edu..sp 1If the parent (delegating) domain can be determined simplyby stripping off the first domain part and subsequent dot fromthe specified domain name, then there is no need to includethe parent_domain_name parameter.  Examples:.sp 1.nf	doc isi.edu. edu.			(this is correct)	doc isi.edu.    			(this works too)	doc 9.128.in-addr.arpa. arpa.	(this is correct)	doc 9.128.in-addr.arpa.		(this will NOT work).fi.sp 1In the last (incorrect) example, because there is no parentdomain specified, \fIdoc\fP fills in the optional parent_domainparameter, and runs as if you specified:.sp 1	doc 9.128.in-addr.arpa. 128.in-addr.arpa..sp 1Since, the delegation information for 9.128.in-addr.arpa. isnot at 128.in-addr.arpa. (rather at arpa.), this run willabort, and not report as expected..SH OPTIONS.IP "\-p"Skip testing the information held at delegating domain's servers..sp 1The default operation of \fIdoc\fP includes testing that all of theservers for the delegating (parent) domain agree about thedelegation information held for the domain in question.  Sinceinconsistencies discovered at this level may or may not indicateserious problems, one can choose to skip the parent testing.If so, \fIdoc\fP uses the first non-authoritative list of NS recordsfrom a parent domain server as those to direct further queries.If all of the parent domain servers are additionally authoritativefor the domain, the answer from the last one queried is used.This may be a useful timesaver if you are regularly checking upon a large number of domains.  [See also section FILES USED fora similar functionality.].IP "\-[e][w][v][d]  Specify the level of verbosity to standard output.".sp 1The default mode of operation is to only print to standard outputa summary of what is discovered.  In addition, errors made in theprocess of testing (i.e. query errors, errors causing \fIdoc\fP toabort, etc) are noted..sp 1.nf    -e	Output comments about errors discovered.    -w	Output comments about warnings issued.    -v	Verbose output. Include misc. comments and output		confirming correct behavior.    -d	Debug output. Checkpoint current (last) nameserver query..fi.sp 1These output options are cumulative (i.e. -v implies -v -w -e)..sp 1\fBNOTE:\fP Parsing is very simple.  All option flags must comebefore the domain names..SH FILES CREATEDIn addition to the standard output, \fIdoc\fP produces a log filenamed log.<domain_name>, which it places in the currentdirectory.  This file includes all "verbose" level comments,followed by the nameserver responses to the queries (in aslightly masticated form)..sp 1While running, \fIdoc\fP creates several temporary files in thecurrent directory.  These files have names of the form:.sp 1	<domain_name>.* .SH FILES USED\fIDoc\fP expects the auxiliary files: doc1.awk, doc3.awk, anddoc4.awk to reside in the current working directory..sp 1\fIDoc\fP looks for the file DNsrv.<parent_domain_name> in theworking directory.  If it exists, \fIdoc\fP does not make a standardquery to discover the list of nameservers for the parent domain.Rather it queries the list of servers contained in this file toobtain delegation information for the domain being tested.  Thismay be useful if one regularly tests a series of domains, allwith the same delegating zone, where one of the servers in knownto be foul.  This server would simply be omitted from the theDNsrv.* file..sp 1awk, sed & dig (version 2.0 or higher) are expected to be foundin your normal path.  If not, you may want to alias to the fullpath inside of \fIdoc\fP itself..SH DETAILSSee file INFO (included with distribution tar) for details ofprocedure..SH BUGSThe exit code returned via the shell is only 8 bits.  This couldcause a problem in the value returned by the auxiliary file doc3.awk.This hasn't been seen yet (a "poison configuration" is not likely tooccur yet), and hopefully will be corrected if/when\fIdoc\fP is re-implemented (see below)..sp 1The current implementation is fairly simple (albeit not pretty),so it is not expected to abort unexpectedly.  However, thisversion (2.0) is an initial attempt at automating this task.Further development is expected in identifying the appropriatequeries, analysis, and subsequent conclusions that are made.Hopefully once the design of the test suite has become more stable,a less "patchwork" production version of \fIdoc\fP will be done..sp 1Comments are very much welcome..SH AUTHORSteve Hotz (hotz@isi.edu)Paul Mockapetris (pvm@isi.edu).SH SEE ALSOdig(1),  bind operators guide,  RFCs: 1034,1035,xxxx

⌨️ 快捷键说明

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