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

📄 rfc1034.2up.ps

📁 this gives details of the network programming
💻 PS
📖 第 1 页 / 共 5 页
字号:
/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1034.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1034.txt) def% User defined strings:/fmodstr (Tue Nov 24 00:00:00 1987) def/pagenumstr (13) def/user_header_p true def/user_header_left_str (RFC1034) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 13 of 56) def%%EndPageSetupdo_header5 751 M(RFC 1034             Domain Concepts and Facilities        November 1987) s5 712 M(RDATA           which is the type and sometimes class dependent data) s5 699 M(                which describes the resource:) s5 673 M(                A               For the IN class, a 32 bit IP address) s5 647 M(                                For the CH class, a domain name followed) s5 634 M(                                by a 16 bit octal Chaos address.) s5 608 M(                CNAME           a domain name.) s5 582 M(                MX              a 16 bit preference value \(lower is) s5 569 M(                                better\) followed by a host name willing) s5 556 M(                                to act as a mail exchange for the owner) s5 543 M(                                domain.) s5 517 M(                NS              a host name.) s5 491 M(                PTR             a domain name.) s5 465 M(                SOA             several fields.) s5 439 M(The owner name is often implicit, rather than forming an integral part) s5 426 M(of the RR.  For example, many name servers internally form tree or hash) s5 413 M(structures for the name space, and chain RRs off nodes.  The remaining) s5 400 M(RR parts are the fixed header \(type, class, TTL\) which is consistent for) s5 387 M(all RRs, and a variable part \(RDATA\) that fits the needs of the resource) s5 374 M(being described.) s5 348 M(The meaning of the TTL field is a time limit on how long an RR can be) s5 335 M(kept in a cache.  This limit does not apply to authoritative data in) s5 322 M(zones; it is also timed out, but by the refreshing policies for the) s5 309 M(zone.  The TTL is assigned by the administrator for the zone where the) s5 296 M(data originates.  While short TTLs can be used to minimize caching, and) s5 283 M(a zero TTL prohibits caching, the realities of Internet performance) s5 270 M(suggest that these times should be on the order of days for the typical) s5 257 M(host.  If a change can be anticipated, the TTL can be reduced prior to) s5 244 M(the change to minimize inconsistency during the change, and then) s5 231 M(increased back to its former value following the change.) s5 205 M(The data in the RDATA section of RRs is carried as a combination of) s5 192 M(binary strings and domain names.  The domain names are frequently used) s5 179 M(as "pointers" to other data in the DNS.) s5 153 M(3.6.1. Textual expression of RRs) s5 127 M(RRs are represented in binary form in the packets of the DNS protocol,) s5 114 M(and are usually represented in highly encoded form when stored in a name) s5 101 M(server or resolver.  In this memo, we adopt a style similar to that used) s5 49 M(Mockapetris                                                    [Page 13]) s_R%Page: (14) 14%BeginPageSetup_S% N-up sub-page 2/2402 -547 translate0.688917 dup scale/pagenum 14 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1034.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1034.txt) def% User defined strings:/fmodstr (Tue Nov 24 00:00:00 1987) def/pagenumstr (14) def/user_header_p true def/user_header_left_str (RFC1034) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 14 of 56) def%%EndPageSetupdo_header5 751 M(RFC 1034             Domain Concepts and Facilities        November 1987) s5 712 M(in master files in order to show the contents of RRs.  In this format,) s5 699 M(most RRs are shown on a single line, although continuation lines are) s5 686 M(possible using parentheses.) s5 660 M(The start of the line gives the owner of the RR.  If a line begins with) s5 647 M(a blank, then the owner is assumed to be the same as that of the) s5 634 M(previous RR.  Blank lines are often included for readability.) s5 608 M(Following the owner, we list the TTL, type, and class of the RR.  Class) s5 595 M(and type use the mnemonics defined above, and TTL is an integer before) s5 582 M(the type field.  In order to avoid ambiguity in parsing, type and class) s5 569 M(mnemonics are disjoint, TTLs are integers, and the type mnemonic is) s5 556 M(always last. The IN class and TTL values are often omitted from examples) s5 543 M(in the interests of clarity.) s5 517 M(The resource data or RDATA section of the RR are given using knowledge) s5 504 M(of the typical representation for the data.) s5 478 M(For example, we might show the RRs carried in a message as:) s5 452 M(    ISI.EDU.        MX      10 VENERA.ISI.EDU.) s5 439 M(                    MX      10 VAXA.ISI.EDU.) s5 426 M(    VENERA.ISI.EDU. A       128.9.0.32) s5 413 M(                    A       10.1.0.52) s5 400 M(    VAXA.ISI.EDU.   A       10.2.0.27) s5 387 M(                    A       128.9.0.33) s5 361 M(The MX RRs have an RDATA section which consists of a 16 bit number) s5 348 M(followed by a domain name.  The address RRs use a standard IP address) s5 335 M(format to contain a 32 bit internet address.) s5 309 M(This example shows six RRs, with two RRs at each of three domain names.) s5 283 M(Similarly we might see:) s5 257 M(    XX.LCS.MIT.EDU. IN      A       10.0.0.44) s5 244 M(                    CH      A       MIT.EDU. 2420) s5 218 M(This example shows two addresses for XX.LCS.MIT.EDU, each of a different) s5 205 M(class.) s5 179 M(3.6.2. Aliases and canonical names) s5 153 M(In existing systems, hosts and other resources often have several names) s5 140 M(that identify the same resource.  For example, the names C.ISI.EDU and) s5 127 M(USC-ISIC.ARPA both identify the same host.  Similarly, in the case of) s5 114 M(mailboxes, many organizations provide many names that actually go to the) s5 101 M(same mailbox; for example Mockapetris@C.ISI.EDU, Mockapetris@B.ISI.EDU,) s5 49 M(Mockapetris                                                    [Page 14]) s_R_RS%%Page: (15-16) 8%%BeginPageSetup_S90 rotate24 -24 translate%Page: (15) 15%BeginPageSetup_S% N-up sub-page 1/20 -547 translate0.688917 dup scale/pagenum 15 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1034.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1034.txt) def% User defined strings:/fmodstr (Tue Nov 24 00:00:00 1987) def/pagenumstr (15) def/user_header_p true def/user_header_left_str (RFC1034) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 15 of 56) def%%EndPageSetupdo_header5 751 M(RFC 1034             Domain Concepts and Facilities        November 1987) s5 712 M(and PVM@ISI.EDU all go to the same mailbox \(although the mechanism) s5 699 M(behind this is somewhat complicated\).) s5 673 M(Most of these systems have a notion that one of the equivalent set of) s5 660 M(names is the canonical or primary name and all others are aliases.) s5 634 M(The domain system provides such a feature using the canonical name) s5 621 M(\(CNAME\) RR.  A CNAME RR identifies its owner name as an alias, and) s5 608 M(specifies the corresponding canonical name in the RDATA section of the) s5 595 M(RR.  If a CNAME RR is present at a node, no other data should be) s5 582 M(present; this ensures that the data for a canonical name and its aliases) s5 569 M(cannot be different.  This rule also insures that a cached CNAME can be) s5 556 M(used without checking with an authoritative server for other RR types.) s5 530 M(CNAME RRs cause special action in DNS software.  When a name server) s5 517 M(fails to find a desired RR in the resource set associated with the) s5 504 M(domain name, it checks to see if the resource set consists of a CNAME) s5 491 M(record with a matching class.  If so, the name server includes the CNAME) s5 478 M(record in the response and restarts the query at the domain name) s5 465 M(specified in the data field of the CNAME record.  The one exception to) s5 452 M(this rule is that queries which match the CNAME type are not restarted.) s5 426 M(For example, suppose a name server was processing a query with for USC-) s5 413 M(ISIC.ARPA, asking for type A information, and had the following resource) s5 400 M(records:) s5 374 M(    USC-ISIC.ARPA   IN      CNAME   C.ISI.EDU) s5 348 M(    C.ISI.EDU       IN      A       10.0.0.52) s5 322 M(Both of these RRs would be returned in the response to the type A query,) s5 309 M(while a type CNAME or * query should return just the CNAME.) s5 283 M(Domain names in RRs which point at another name should always point at) s5 270 M(the primary name and not the alias.  This avoids extra indirections in) s5 257 M(accessing information.  For example, the address to name RR for the) s5 244 M(above host should be:) s5 218 M(    52.0.0.10.IN-ADDR.ARPA  IN      PTR     C.ISI.EDU) s5 192 M(rather than pointing at USC-ISIC.ARPA.  Of course, by the robustness) s5 179 M(principle, domain software should not fail when presented with CNAME) s5 166 M(chains or loops; CNAME chains should be followed and CNAME loops) s5 153 M(signalled as an error.) s5 127 M(3.7. Queries) s5 101 M(Queries are messages which may be sent to a name server to provoke a) s5 49 M(Mockapetris                                                    [Page 15]) s_R%Page: (16) 16%BeginPageSetup_S% N-up sub-page 2/2402 -547 translate0.688917 dup scale/pagenum 16 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1034.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1034.txt) def% User defined strings:/fmodstr (Tue Nov 24 00:00:00 1987) def/pagenumstr (16) def/user_header_p true def/user_header_left_str (RFC1034) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 16 of 56) def%%EndPageSetupdo_header5 751 M(RFC 1034             Domain Concepts and Facilities        November 1987) s5 712 M(response.  In the Internet, queries are carried in UDP datagrams or over) s5 699 M(TCP connections.  The response by the name server either answers the) s5 686 M(question posed in the query, refers the requester to another set of name) s5 673 M(servers, or signals some error condition.) s5 647 M(In general, the user does not generate queries directly, but instead) s5 634 M(makes a request to a resolver which in turn sends one or more queries to) s5 621 M(name servers and deals with the error conditions and referrals that may) s5 608 M(result.  Of course, the possible questions which can be asked in a query) s5 595 M(does shape the kind of service a resolver can provide.) s5 569 M(DNS queries and responses are carried in a standard message format.  The) s5 556 M(message format has a header containing a number of fixed fields which) s5 543 M(are always present, and four sections which carry query parameters and) s5 530 M(RRs.) s5 504 M(The most important field in the header is a four bit field called an) s5 491 M(opcode which separates different queries.  Of the possible 16 values,) s5 478 M(one \(standard query\) is part of the official protocol, two \(inverse) s5 465 M(query and status query\) are options, one \(completion\) is obsolete, and) s5 452 M(the rest are unassigned.) s5 426 M(The four sections are:) s5 400 M(Question        Carries the query name and other query parameters.) s5 374 M(Answer          Carries RRs which directly answer the query.) s5 348 M(Authority       Carries RRs which describe other authoritative servers.) s5 335 M(                May optionally carry the SOA RR for the authoritative) s5 322 M(                data in the answer section.) s5 296 M(Additional      Carries RRs which may be helpful in using the RRs in the) s5 283 M(                other sections.) s5 257 M(Note that the content, but not the format, of these sections varies with) s5 244 M(header opcode.) s5 218 M(3.7.1. Standard queries) s5 192 M(A standard query specifies a target domain name \(QNAME\), query type) s5 179 M(\(QTYPE\), and query class \(QCLASS\) and asks for RRs which match.  This) s5 166 M(type of query makes up such a vast majority of DNS queries that we use) s5 153 M(the term "query" to mean standard query unless otherwise specified.  The) s5 140 M(QTYPE and QCLASS fields are each 16 bits long, and are a superset of) s5 127 M(defined types and classes.) s5 49 M(Mockapetris                                                    [Page 16]) s_R_RS%%Page: (17-18) 9%%BeginPageSetup_S90 rotate24 -24 translate%Page: (17) 17%BeginPageSetup_S% N-up sub-page 1/20 -547 translate0.688917 dup scale/pagenum 17 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1034.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1034.txt) def% User defined strings:/fmodstr (Tue Nov 24 00:00:00 1987) def/pagenumstr (17) def/user_header_p true def/user_header_left_str (RFC1034) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 17 of 56) de

⌨️ 快捷键说明

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