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

📄 rfc1035.txt

📁 bind 9.3结合mysql数据库
💻 TXT
📖 第 1 页 / 共 5 页
字号:
The shared database holds domain space data for the local name serverand resolver.  The contents of the shared database will typically be amixture of authoritative data maintained by the periodic refreshoperations of the name server and cached data from previous resolverrequests.  The structure of the domain data and the necessity forsynchronization between name servers and resolvers imply the generalcharacteristics of this database, but the actual format is up to thelocal implementor.Mockapetris                                                     [Page 6]RFC 1035        Domain Implementation and Specification    November 1987Information flow can also be tailored so that a group of hosts acttogether to optimize activities.  Sometimes this is done to offload lesscapable hosts so that they do not have to implement a full resolver.This can be appropriate for PCs or hosts which want to minimize theamount of new network code which is required.  This scheme can alsoallow a group of hosts can share a small number of caches rather thanmaintaining a large number of separate caches, on the premise that thecentralized caches will have a higher hit ratio.  In either case,resolvers are replaced with stub resolvers which act as front ends toresolvers located in a recursive server in one or more name serversknown to perform that service:                   Local Hosts                     |  Foreign                                                   |    +---------+                                    |    |         | responses                          |    | Stub    |<--------------------+              |    | Resolver|                     |              |    |         |----------------+    |              |    +---------+ recursive      |    |              |                queries        |    |              |                               V    |              |    +---------+ recursive     +----------+         |  +--------+    |         | queries       |          |queries  |  |        |    | Stub    |-------------->| Recursive|---------|->|Foreign |    | Resolver|               | Server   |         |  |  Name  |    |         |<--------------|          |<--------|--| Server |    +---------+ responses     |          |responses|  |        |                              +----------+         |  +--------+                              |  Central |         |                              |   cache  |         |                              +----------+         |In any case, note that domain components are always replicated forreliability whenever possible.2.3. ConventionsThe domain system has several conventions dealing with low-level, butfundamental, issues.  While the implementor is free to violate theseconventions WITHIN HIS OWN SYSTEM, he must observe these conventions inALL behavior observed from other hosts.2.3.1. Preferred name syntaxThe DNS specifications attempt to be as general as possible in the rulesfor constructing domain names.  The idea is that the name of anyexisting object can be expressed as a domain name with minimal changes.Mockapetris                                                     [Page 7]RFC 1035        Domain Implementation and Specification    November 1987However, when assigning a domain name for an object, the prudent userwill select a name which satisfies both the rules of the domain systemand any existing rules for the object, whether these rules are publishedor implied by existing programs.For example, when naming a mail domain, the user should satisfy both therules of this memo and those in RFC-822.  When creating a new host name,the old rules for HOSTS.TXT should be followed.  This avoids problemswhen old software is converted to use domain names.The following syntax will result in fewer problems with manyapplications that use domain names (e.g., mail, TELNET).<domain> ::= <subdomain> | " "<subdomain> ::= <label> | <subdomain> "." <label><label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]<ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str><let-dig-hyp> ::= <let-dig> | "-"<let-dig> ::= <letter> | <digit><letter> ::= any one of the 52 alphabetic characters A through Z inupper case and a through z in lower case<digit> ::= any one of the ten digits 0 through 9Note that while upper and lower case letters are allowed in domainnames, no significance is attached to the case.  That is, two names withthe same spelling but different case are to be treated as if identical.The labels must follow the rules for ARPANET host names.  They muststart with a letter, end with a letter or digit, and have as interiorcharacters only letters, digits, and hyphen.  There are also somerestrictions on the length.  Labels must be 63 characters or less.For example, the following strings identify hosts in the Internet:A.ISI.EDU XX.LCS.MIT.EDU SRI-NIC.ARPA2.3.2. Data Transmission OrderThe order of transmission of the header and data described in thisdocument is resolved to the octet level.  Whenever a diagram shows aMockapetris                                                     [Page 8]RFC 1035        Domain Implementation and Specification    November 1987group of octets, the order of transmission of those octets is the normalorder in which they are read in English.  For example, in the followingdiagram, the octets are transmitted in the order they are numbered.     0                   1     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |       1       |       2       |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |       3       |       4       |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |       5       |       6       |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Whenever an octet represents a numeric quantity, the left most bit inthe diagram is the high order or most significant bit.  That is, the bitlabeled 0 is the most significant bit.  For example, the followingdiagram represents the value 170 (decimal).     0 1 2 3 4 5 6 7    +-+-+-+-+-+-+-+-+    |1 0 1 0 1 0 1 0|    +-+-+-+-+-+-+-+-+Similarly, whenever a multi-octet field represents a numeric quantitythe left most bit of the whole field is the most significant bit.  Whena multi-octet quantity is transmitted the most significant octet istransmitted first.2.3.3. Character CaseFor all parts of the DNS that are part of the official protocol, allcomparisons between character strings (e.g., labels, domain names, etc.)are done in a case-insensitive manner.  At present, this rule is inforce throughout the domain system without exception.  However, futureadditions beyond current usage may need to use the full binary octetcapabilities in names, so attempts to store domain names in 7-bit ASCIIor use of special bytes to terminate labels, etc., should be avoided.When data enters the domain system, its original case should bepreserved whenever possible.  In certain circumstances this cannot bedone.  For example, if two RRs are stored in a database, one at x.y andone at X.Y, they are actually stored at the same place in the database,and hence only one casing would be preserved.  The basic rule is thatcase can be discarded only when data is used to define structure in adatabase, and two names are identical when compared in a caseinsensitive manner.Mockapetris                                                     [Page 9]RFC 1035        Domain Implementation and Specification    November 1987Loss of case sensitive data must be minimized.  Thus while data for x.yand X.Y may both be stored under a single location x.y or X.Y, data fora.x and B.X would never be stored under A.x, A.X, b.x, or b.X.  Ingeneral, this preserves the case of the first label of a domain name,but forces standardization of interior node labels.Systems administrators who enter data into the domain database shouldtake care to represent the data they supply to the domain system in acase-consistent manner if their system is case-sensitive.  The datadistribution system in the domain system will ensure that consistentrepresentations are preserved.2.3.4. Size limitsVarious objects and parameters in the DNS have size limits.  They arelisted below.  Some could be easily changed, others are morefundamental.labels          63 octets or lessnames           255 octets or lessTTL             positive values of a signed 32 bit number.UDP messages    512 octets or less3. DOMAIN NAME SPACE AND RR DEFINITIONS3.1. Name space definitionsDomain names in messages are expressed in terms of a sequence of labels.Each label is represented as a one octet length field followed by thatnumber of octets.  Since every domain name ends with the null label ofthe root, a domain name is terminated by a length byte of zero.  Thehigh order two bits of every length octet must be zero, and theremaining six bits of the length field limit the label to 63 octets orless.To simplify implementations, the total length of a domain name (i.e.,label octets and label length octets) is restricted to 255 octets orless.Although labels can contain any 8 bit values in octets that make up alabel, it is strongly recommended that labels follow the preferredsyntax described elsewhere in this memo, which is compatible withexisting host naming conventions.  Name servers and resolvers mustcompare labels in a case-insensitive manner (i.e., A=a), assuming ASCIIwith zero parity.  Non-alphabetic codes must match exactly.Mockapetris                                                    [Page 10]RFC 1035        Domain Implementation and Specification    November 19873.2. RR definitions3.2.1. FormatAll RRs have the same top level format shown below:                                    1  1  1  1  1  1      0  1  2  3  4  5  6  7  8  9  0  1  2  3  4  5    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+    |                                               |    /                                               /    /                      NAME                     /    |                                               |    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+    |                      TYPE                     |    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+    |                     CLASS                     |    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+    |                      TTL                      |    |                                               |    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+    |                   RDLENGTH                    |    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--|    /                     RDATA                     /    /                                               /    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+where:NAME            an owner name, i.e., the name of the node to which this                resource record pertains.TYPE            two octets containing one of the RR TYPE codes.CLASS           two octets containing one of the RR CLASS codes.TTL             a 32 bit signed integer that specifies the time interval                that the resource record may be cached before the source                of the information should again be consulted.  Zero                values are interpreted to mean that the RR can only be                used for the transaction in progress, and should not be                cached.  For example, SOA records are always distributed                with a zero TTL to prohibit caching.  Zero values can                also be used for extremely volatile data.RDLENGTH        an unsigned 16 bit integer that specifies the length in                octets of the RDATA field.Mockapetris                                                    [Page 11]RFC 1035        Domain Implementation and Specification    November 1987RDATA           a variable length string of octets that describes the                resource.  The format of this information varies                according to the TYPE and CLASS of the resource record.3.2.2. TYPE valuesTYPE fields are used in resource records.  Note that these types are asubset of QTYPEs.TYPE            value and meaningA               1 a host addressNS              2 an authoritative name serverMD              3 a mail destination (Obsolete - use MX)MF              4 a mail forwarder (Obsolete - use MX)CNAME           5 the canonical name for an aliasSOA             6 marks the start of a zone of authority

⌨️ 快捷键说明

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