Internet-Draft | ranking | March 2025 |
Fujiwara & Toorop | Expires 4 September 2025 | [Page] |
This document obsoletes Section 5.4.1 (Ranking data) of RFC 2181, and specifies directives whereby the source of the data determines for what purposes it may be used.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 4 September 2025.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The DNS server assumed in Section 5.4.1 (Ranking data) of [RFC2181] is considered to be a model with a shared database described in Section 2.2 (Common configurations) of [RFC1035] that has both Authoritative server and Recursive Resolver functions. It is assumed that information obtained from zone files, zone transfers, and name resolution will be mixed together.¶
However, at the time of writing, this is no longer the practice of name servers and resolvers. Zone transfers transfer the same data from primaries to secondary servers without any modification. An authoritative name server function does not mix and return information obtained from name resolution.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
Many of the specialized terms used in this document are defined in DNS Terminology [RFC9499].¶
In the past, recursive resolvers would return data from referral responses, such as delegation information or glue, in the answer section of responses; however, modern recursive resolvers complete name resolution with an authoritative response from an authoritative server that has authority through delegation. However, there is no clear documentation of this.¶
"The Ranking Data" only indicates the priority among data, not its validity. Attacks using responses that do not correspond to queries and additional data that is not required have been considered and reported, so unnecessary data should be discarded.¶
Currently, responses from authoritative servers are considered to include authoritative name resolution results (NXDOMAIN, NODATA, the RRSet requested), non-authoritative delegation information, unnecessary data, and other types of errors, and each of these is considered to affect how resolvers handle the data. Therefore, directives on how to handle the data are needed.¶
Authoritative servers MUST NOT merge zone data. (zone data should be retrieved from a source (zone file, internal database, zone transfer)¶
Name resolution results (Answer section, or NXDOMAIN, NODATA) MUST be authoritative responses from authoritative servers that has authority through delegation.¶
Non-authoritative responses (referral/delegation responses) from authoritative servers MUST only be used to query the delegated authoritative server during the name resolution.¶
Names and IP addresses of the authoritative name servers for zones (such as the root zone) that are built-in or loaded from "hints" files, MUST only be used for priming a resolver for those zones [RFC9609].¶
[ Further directives could be made, they may be DNS software implementation guidelines, which would be large in scale, so it is necessary to consider whether to proceed with them. ]¶
If a DNS server plays different roles for different namespaces (authoritative server, recursive resolver, forwarder), it MUST NOT merge DNS data for each role.¶
For example, a recursive resolver that returns a fixed zone as a split-horizon DNS can be interpreted as acting as an authoritative server below a certain domain name, but as a recursive resolver otherwise.¶
The Additional Section returned as the result of name resolution MUST be exactly the same as the Additional Section that came from the authoritative response from the authoritative server, or a separate authoritative response resulting from name resolution.¶
Full-service resolvers SHOULD only accept the following data from authoritative servers:¶
NS and DS RRSets (+RRSIG) in the Authority Section of the delegation response and Glue A/AAAA in the Additional Section,¶
SOA RRs (+RRSIG) in the Authority Section of authoritative NXDOMAIN and NODATA responses in response to the query,¶
the Answer Section (+RRSIG) of the authoritative response in response to the query, and¶
any additional sections allowed by type (delegated domain name),¶
and SHOULD NOT accept any other information.¶
This document requests no IANA actions.¶