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

📄 rfc1034.txt

📁 bind 9.3结合mysql数据库
💻 TXT
📖 第 1 页 / 共 5 页
字号:
     redundant service for the data in a zone.   - RESOLVERS are programs that extract information from name     servers in response to client requests.  Resolvers must be     able to access at least one name server and use that name     server's information to answer a query directly, or pursue the     query using referrals to other name servers.  A resolver will     typically be a system routine that is directly accessible to     user programs; hence no protocol is necessary between the     resolver and the user program.These three components roughly correspond to the three layers or viewsof the domain system:   - From the user's point of view, the domain system is accessed     through a simple procedure or OS call to a local resolver.     The domain space consists of a single tree and the user can     request information from any section of the tree.   - From the resolver's point of view, the domain system is     composed of an unknown number of name servers.  Each nameMockapetris                                                     [Page 6]RFC 1034             Domain Concepts and Facilities        November 1987     server has one or more pieces of the whole domain tree's data,     but the resolver views each of these databases as essentially     static.   - From a name server's point of view, the domain system consists     of separate sets of local information called zones.  The name     server has local copies of some of the zones.  The name server     must periodically refresh its zones from master copies in     local files or foreign name servers.  The name server must     concurrently process queries that arrive from resolvers.In the interests of performance, implementations may couple thesefunctions.  For example, a resolver on the same machine as a name servermight share a database consisting of the the zones managed by the nameserver and the cache managed by the resolver.3. DOMAIN NAME SPACE and RESOURCE RECORDS3.1. Name space specifications and terminologyThe domain name space is a tree structure.  Each node and leaf on thetree corresponds to a resource set (which may be empty).  The domainsystem makes no distinctions between the uses of the interior nodes andleaves, and this memo uses the term "node" to refer to both.Each node has a label, which is zero to 63 octets in length.  Brothernodes may not have the same label, although the same label can be usedfor nodes which are not brothers.  One label is reserved, and that isthe null (i.e., zero length) label used for the root.The domain name of a node is the list of the labels on the path from thenode to the root of the tree.  By convention, the labels that compose adomain name are printed or read left to right, from the most specific(lowest, farthest from the root) to the least specific (highest, closestto the root).Internally, programs that manipulate domain names should represent themas sequences of labels, where each label is a length octet followed byan octet string.  Because all domain names end at the root, which has anull string for a label, these internal representations can use a lengthbyte of zero to terminate a domain name.By convention, domain names can be stored with arbitrary case, butdomain name comparisons for all present domain functions are done in acase-insensitive manner, assuming an ASCII character set, and a highorder zero bit.  This means that you are free to create a node withlabel "A" or a node with label "a", but not both as brothers; you couldrefer to either using "a" or "A".  When you receive a domain name orMockapetris                                                     [Page 7]RFC 1034             Domain Concepts and Facilities        November 1987label, you should preserve its case.  The rationale for this choice isthat we may someday need to add full binary domain names for newservices; existing services would not be changed.When a user needs to type a domain name, the length of each label isomitted and the labels are separated by dots (".").  Since a completedomain name ends with the root label, this leads to a printed form whichends in a dot.  We use this property to distinguish between:   - a character string which represents a complete domain name     (often called "absolute").  For example, "poneria.ISI.EDU."   - a character string that represents the starting labels of a     domain name which is incomplete, and should be completed by     local software using knowledge of the local domain (often     called "relative").  For example, "poneria" used in the     ISI.EDU domain.Relative names are either taken relative to a well known origin, or to alist of domains used as a search list.  Relative names appear mostly atthe user interface, where their interpretation varies fromimplementation to implementation, and in master files, where they arerelative to a single origin domain name.  The most common interpretationuses the root "." as either the single origin or as one of the membersof the search list, so a multi-label relative name is often one wherethe trailing dot has been omitted to save typing.To simplify implementations, the total number of octets that represent adomain name (i.e., the sum of all label octets and label lengths) islimited to 255.A domain is identified by a domain name, and consists of that part ofthe domain name space that is at or below the domain name whichspecifies the domain.  A domain is a subdomain of another domain if itis contained within that domain.  This relationship can be tested byseeing if the subdomain's name ends with the containing domain's name.For example, A.B.C.D is a subdomain of B.C.D, C.D, D, and " ".3.2. Administrative guidelines on useAs a matter of policy, the DNS technical specifications do not mandate aparticular tree structure or rules for selecting labels; its goal is tobe as general as possible, so that it can be used to build arbitraryapplications.  In particular, the system was designed so that the namespace did not have to be organized along the lines of networkboundaries, name servers, etc.  The rationale for this is not that thename space should have no implied semantics, but rather that the choiceof implied semantics should be left open to be used for the problem atMockapetris                                                     [Page 8]RFC 1034             Domain Concepts and Facilities        November 1987hand, and that different parts of the tree can have different impliedsemantics.  For example, the IN-ADDR.ARPA domain is organized anddistributed by network and host address because its role is to translatefrom network or host numbers to names; NetBIOS domains [RFC-1001, RFC-1002] are flat because that is appropriate for that application.However, there are some guidelines that apply to the "normal" parts ofthe name space used for hosts, mailboxes, etc., that will make the namespace more uniform, provide for growth, and minimize problems assoftware is converted from the older host table.  The politicaldecisions about the top levels of the tree originated in RFC-920.Current policy for the top levels is discussed in [RFC-1032].  MILNETconversion issues are covered in [RFC-1031].Lower domains which will eventually be broken into multiple zones shouldprovide branching at the top of the domain so that the eventualdecomposition can be done without renaming.  Node labels which usespecial characters, leading digits, etc., are likely to break oldersoftware which depends on more restrictive choices.3.3. Technical guidelines on useBefore the DNS can be used to hold naming information for some kind ofobject, two needs must be met:   - A convention for mapping between object names and domain     names.  This describes how information about an object is     accessed.   - RR types and data formats for describing the object.These rules can be quite simple or fairly complex.  Very often, thedesigner must take into account existing formats and plan for upwardcompatibility for existing usage.  Multiple mappings or levels ofmapping may be required.For hosts, the mapping depends on the existing syntax for host nameswhich is a subset of the usual text representation for domain names,together with RR formats for describing host addresses, etc.  Because weneed a reliable inverse mapping from address to host name, a specialmapping for addresses into the IN-ADDR.ARPA domain is also defined.For mailboxes, the mapping is slightly more complex.  The usual mailaddress <local-part>@<mail-domain> is mapped into a domain name byconverting <local-part> into a single label (regardles of dots itcontains), converting <mail-domain> into a domain name using the usualtext format for domain names (dots denote label breaks), andconcatenating the two to form a single domain name.  Thus the mailboxMockapetris                                                     [Page 9]RFC 1034             Domain Concepts and Facilities        November 1987HOSTMASTER@SRI-NIC.ARPA is represented as a domain name byHOSTMASTER.SRI-NIC.ARPA.  An appreciation for the reasons behind thisdesign also must take into account the scheme for mail exchanges [RFC-974].The typical user is not concerned with defining these rules, but shouldunderstand that they usually are the result of numerous compromisesbetween desires for upward compatibility with old usage, interactionsbetween different object definitions, and the inevitable urge to add newfeatures when defining the rules.  The way the DNS is used to supportsome object is often more crucial than the restrictions inherent in theDNS.3.4. Example name spaceThe following figure shows a part of the current domain name space, andis used in many examples in this RFC.  Note that the tree is a verysmall subset of the actual name space.                                   |                                   |             +---------------------+------------------+             |                     |                  |            MIL                   EDU                ARPA             |                     |                  |             |                     |                  |       +-----+-----+               |     +------+-----+-----+       |     |     |               |     |      |           |      BRL  NOSC  DARPA             |  IN-ADDR  SRI-NIC     ACC                                   |       +--------+------------------+---------------+--------+       |        |                  |               |        |      UCI      MIT                 |              UDEL     YALE                |                 ISI                |                  |            +---+---+              |            |       |              |           LCS  ACHILLES  +--+-----+-----+--------+            |             |  |     |     |        |            XX            A  C   VAXA  VENERA MockapetrisIn this example, the root domain has three immediate subdomains: MIL,EDU, and ARPA.  The LCS.MIT.EDU domain has one immediate subdomain namedXX.LCS.MIT.EDU.  All of the leaves are also domains.3.5. Preferred name syntaxThe DNS specifications attempt to be as general as possible in the rulesMockapetris                                                    [Page 10]RFC 1034             Domain Concepts and Facilities        November 1987for constructing domain names.  The idea is that the name of anyexisting object can be expressed as a domain name with minimal changes.However, 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.ARPA3.6. Resource RecordsA domain name identifies a node.  Each node has a set of resourceMockapetris                                                    [Page 11]RFC 1034             Domain Concepts and Facilities        November 1987

⌨️ 快捷键说明

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