RFC 9432 | DNS Catalog Zones | July 2023 |
van Dijk, et al. | Standards Track | [Page] |
This document describes a method for automatic DNS zone provisioning among DNSprimary and secondary name servers by storing and transferring the catalog ofzones to be provisioned as one or more regular DNS zones.¶
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any errata, and how to provide feedback on it may be obtained athttps://www.rfc-editor.org/info/rfc9432.¶
Copyright (c) 2023 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 content of a DNS zone is synchronized among its primary and secondaryname servers using Authoritative Transfer (AXFR) and Incremental Zone Transfer (IXFR). However, the list of zones served by theprimary (called a "catalog" in[RFC1035]) is not automatically synchronizedwith the secondaries. To add or remove a zone, the administrator of a DNSname server farm has to not only add or remove the zone from the primary but must also add or remove configuration for the zone from all secondaries. Thiscan be both inconvenient and error-prone. In addition, the steps required aredependent on the name server implementation.¶
This document describes a method in which the list of zones is represented as aregular DNS zone (called a "catalog zone" here) and transferred using DNS zonetransfers. When entries are added to or removed from the catalog zone, it isdistributed to the secondary name servers just like any other zone. Secondaryname servers can then add, remove, or modify the zones they serve in accordance with thechanges to the catalog zone. Other use cases of name server remote configurationby catalog zones are possible where the catalog consumer might not be asecondary.¶
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.¶
$CATZ
:$OLDCATZ
and$NEWCATZ
are used to discuss migration of a member zone from one catalog zone ($OLDCATZ
) to another catalog zone ($NEWCATZ
).¶This document makes use of terminology for transfer mechanisms (AXFR and IXFR), record types (SOA, NS, and PTR), and other technical terms (such as RDATA) that are specific to the DNS.Since these terms have specific meanings in the DNS, they are not expanded upon first use in this document.For definitions of these and other terms, see[RFC8499].¶
A catalog zone is a DNS zone whose contents are specially crafted. Its resource records (RRs) primarily constitute a list of PTR records referencing other DNS zones (so-called "member zones"). The catalog zone may contain other records indicating additional metadata (so-called "properties") associated with these member zones.¶
Catalog consumersMUST ignore any RRs in the catalog zone for which no processing is specified or which are otherwise not supported by the implementation.¶
Authoritative servers may be pre-configured with multiple catalog zones, each associated with a different set of configurations.¶
Although the contents of a catalog zone are interpreted and acted upon byname servers, a catalog zone is a regular DNS zone and must adhere to thestandards for DNS zones.¶
A catalog zone is primarily intended for the management of a farm of authoritative name servers and should not be expected to be accessible from any recursive name server.¶
A catalog zoneMUST follow the usual rules for DNS zones.In particular, SOA and NS record setsMUST be present and adhere to standard requirements (such as[RFC1982]).¶
Although catalog zones are not intended to be queried via recursive resolution (seeSection 7), at least one NS RR is still required so that a catalog zone is a syntactically correct DNS zone.A single NS RR with a NSDNAME field containing the absolute name "invalid." isRECOMMENDED[RFC2606][RFC6761].¶
The list of member zones is specified as a collection of member nodes represented by domain names under the owner name "zones" where "zones" is a direct child domain of the catalog zone.¶
The names of member zones are represented on the RDATA side of a PTR record (instead of being represented as a part of owner names) so that all valid domain names may be represented regardless of their length[RFC1035].This PTR recordMUST be the only record in the PTR RRset with the same name.The presence of more than one record in the RRset indicates a broken catalog zone thatMUST NOT be processed (seeSection 5.1).¶
For example, if a catalog zone lists three zones ("example.com.","example.net.", and "example.org."), the member node RRs would appear as follows:¶
<unique-1>.zones.$CATZ 0 IN PTR example.com.<unique-2>.zones.$CATZ 0 IN PTR example.net.<unique-3>.zones.$CATZ 0 IN PTR example.org.¶
where<unique-N>
is a label that tags each record in the collection and has a unique value.When different<unique-N>
labels hold the same PTR value (i.e., point to the same member zone), the catalog zone is broken andMUST NOT be processed (seeSection 5.1).¶
Member node labels carry no informational meaning beyond labeling member zones.A changed label may indicate that the state for a zone needs to be reset (seeSection 5.6).¶
Having the zones uniquely tagged with the<unique-N>
label ensures that additional RRs can be added below the member node (seeSection 4.2).¶
The CLASS field of every RR in a catalog zoneMUST be IN (1).The TTL field's value has no meaning in this context andSHOULD be ignored.¶
Catalog zone information is stored in the form of "properties".¶
Properties are identified by their name, which is used as an owner name prefix for one or more record sets underneath a member node (or underneath the catalog zone apex), with RR type(s) as appropriate for the respective property.¶
Known properties that have the correct RR type but are for some reasoninvalid (for example, because of an impossible value or because of an illegalnumber of RRs in the RRset) denote a broken catalog zone, whichMUST NOT beprocessed (seeSection 5.1).¶
This document includes a set of initial properties that can be extended via the IANA registry defined and created inSection 8.Some properties are defined at the global level; others are scoped to apply only to a specific member zone.This document defines a mandatory global property inSection 4.2.1.The "zones" label fromSection 4.1 can also be seen as a global property and is listed as such in the IANA registry inSection 8.Member-specific properties are described inSection 4.3.¶
Implementers may store additional information in the catalog zone with custom properties; seeSection 4.4.The meaning of such custom properties is determined by the implementation in question.¶
version
property)The catalog zone schema version is specified by an integer value embedded in a TXT RR namedversion.$CATZ
.All catalog zonesMUST have a TXT RRset namedversion.$CATZ
with exactly one RR.¶
Catalog consumersMUST NOT apply catalog zone processing to:¶
version
property¶version
property with more than one RR in the RRset¶version
property without an expected value in theversion.$CATZ
TXT RR¶version
property with a schema version value that is not implemented by the consumer (e.g., version "1")¶These conditions signify a broken catalog zone, whichMUST NOT be processed (seeSection 5.1).¶
For this memo, the value of theversion.$CATZ
TXT RRMUST be set to "2"; that is:¶
version.$CATZ 0 IN TXT "2"¶
Note that Version 1 was used in an earlier draft version of this memo and reflectedthe implementation first found in BIND 9.11.¶
Each member zoneMAY have one or more additional properties that are described in this section.The member properties described in this document are all optional, and implementationsMAY choose to implement all, some, or none of them.Member zone properties are represented by RRsets below the corresponding member node.¶
coo
property)Thecoo
property facilitates controlled migration of a member zone from one catalog to another.¶
A Change Of Ownership is signaled by thecoo
property in the catalog zone currently "owning" the zone.The name of the new catalog is the value of a PTR record in the relevantcoo
property in the old catalog.For example, if member "example.com." migrates from catalog zone$OLDCATZ
to catalog zone$NEWCATZ
, this will appear in the$OLDCATZ
catalog zone as follows:¶
<unique-N>.zones.$OLDCATZ 0 IN PTR example.com.coo.<unique-N>.zones.$OLDCATZ 0 IN PTR $NEWCATZ¶
The PTR RRsetMUST consist of a single PTR record.The presence of more than one record in the RRset indicates a broken catalog zone, whichMUST NOT be processed (seeSection 5.1).¶
When a consumer of a catalog zone$OLDCATZ
receives an update that adds or changes acoo
property for a member zone in$OLDCATZ
, it doesnot migrate the member zone immediately.The migration has to wait for an update of$NEWCATZ
in which the member zone is present. Before the actual migration, the consumerMUST verify that thecoo
property pointing to$NEWCATZ
is still present in$OLDCATZ
.¶
Unless the member node label (i.e.,<unique-N>
) for the member is the same in$NEWCATZ
, all its associated state for a just migrated zoneMUST be reset (seeSection 5.6).Note that the owner of$OLDCATZ
allows for the zone-associated state to be taken over by the owner of$NEWCATZ
by default.To prevent the takeover of the zone-associated state, the owner of$OLDCATZ
must remove this state by updating the associated properties or by performing a zone state reset (seeSection 5.6) before or simultaneous with adding thecoo
property (seeSection 7).¶
The old owner may remove the member zone containing thecoo
property from$OLDCATZ
once it has been established that all its consumers have processed the Change of Ownership.¶
group
property)With agroup
property, a consumer(s) can be signaled to treat some member zones within the catalog zone differently.¶
The consumerMAY apply different configuration options when processing member zones, based on the value of thegroup
property.Agroup
property value is stored as the entire RDATA of a TXT record directly below the member node.The exact handling of thegroup
property value is left to the consumer's implementation and configuration.¶
The producerMAY assign agroup
property to all, some, or none of the member zones within a catalog zone.The producerMAY assign more than onegroup
property to one member zone. This will make it possible to transfer group information for different consumer operators in a single catalog zone.ImplementationsMAY facilitate mapping of a specificgroup
value to a specific configuration configurableon a per catalog zone basis to allow for producers that publish their catalog zone at multiple consumer operators.Consumer operatorsSHOULD namespace theirgroup
values to reduce the risk of having to resolve clashes.¶
The consumerMUST ignoregroup
values it does not understand.When a consumer encounters multiplegroup
values for a single member zone, itMAY choose to process all, some, or none of them. This is left to the implementation.¶
group
properties are represented by TXT RRs. The record contenthas no pre-defined meaning. Their interpretation is purely a matterof agreement between the producer and the consumer(s) of the catalog.¶
For example, the "foo" group could be agreed to indicate that a zone notbe signed with DNSSEC. Conversely, an agreement could define that group namesstarting with "operator-" indicate in which way a given DNS operator should setup certain aspects of the member zone's DNSSEC configuration.¶
Assuming that the catalog producer and consumer(s) have established suchagreements, consider the following catalog zone (snippet) that signals to aconsumer(s) how to treat DNSSEC for the zones "example.net." and "example.com.":¶
<unique-1>.zones.$CATZ 0 IN PTR example.com.group.<unique-1>.zones.$CATZ 0 IN TXT "foo"<unique-2>.zones.$CATZ 0 IN PTR example.net.group.<unique-2>.zones.$CATZ 0 IN TXT "operator-x-foo"group.<unique-2>.zones.$CATZ 0 IN TXT "operator-y" "bar"¶
In this scenario, a consumer(s) shall, by agreement, not sign the member zone "example.com." with DNSSEC.For "example.net.", the consumers, at two different operators, will configurethe member zone to be signed with a specific combination of settings. Thegroup
value designated to indicate this combination of settings is prearranged with each operator ("operator-x-foo" vs. "operator-y" "bar").¶
*.ext
properties)Implementations and operators of catalog zones may choose to provide their own properties.Custom properties can occur globally or for a specific member zone.To prevent a name clash with future properties, such propertiesMUST be represented below the label "ext".¶
"ext" is not a placeholder. A custom property is named as follows:¶
; a global custom property:<property-prefix>.ext.$CATZ; a member zone custom property:<property-prefix>.ext.<unique-N>.zones.$CATZ¶
<property-prefix>
may consist of one or more labels.¶
ImplementationsSHOULD namespace their custom properties to limit risk of clashes with other implementations of catalog zones.This can be achieved by using two labels as the<property-prefix>
so that thename of the implementation is included in the prefix:<some-setting>.<implementation-name>.ext.$CATZ
.¶
ImplementationsMAY use such properties on the member zone level to store additional information about member zones(e.g., to flag them for specific treatment).¶
Further, implementationsMAY use custom properties on the global level to store additional information about the catalog zone itself.While there may be many use cases for this, a plausible one is to store default values for custom properties on the global level,then override them using a property of the same name on the member level (= under theext
label of the member node) if so desired.A property agreement between producer and consumer should clearly define what semantics apply and whether a property is global, member, or both.¶
The meaning of the custom properties described in this section is determined by the implementation alone without expectation of interoperability.¶
As it is a regular DNS zone, a catalog zone can be transferred using DNS zonetransfers among name servers.¶
Catalog updates should be automatic; i.e., when a name server that supportscatalog zones completes a zone transfer for a catalog zone, itSHOULD applychanges to the catalog within the running name server automatically without anymanual intervention.¶
Name serversMAY allow loading and transfer of broken zones with incorrectcatalog zone syntax (as they are treated as regular zones).The reason a catalog zone is considered brokenSHOULD be communicated clearly to the operator (e.g., through a log message).¶
When a previously correct catalog zone becomes a broken catalog zone, it loses its catalogmeaning because of an update through an incremental transfer or otherwise.No special processing occurs. Member zones previously configured by this catalogMUST NOT be removed or reconfigured in any way.¶
If a name server restarts with a broken catalog zone, the broken catalogSHOULD NOT prevent the name server from starting up and serving the member zones inthe last valid version of the catalog zone.¶
Processing of a broken catalogSHALL start (or resume) when the catalog turnsinto a correct catalog zone, e.g., by an additional update (through zonetransfer or updates) fixing the catalog zone.¶
Similarly, when a catalog zone expires, it loses its catalog meaning andMUST no longer be processed as such.No special processing occurs until the zone becomes fresh again.¶
If there is a clash between an existing zone's name (from either an existing member zone or an otherwise configured zone) and an incomingmember zone's name (via transfer or update), the new instance of the zoneMUSTbe ignored and an errorSHOULD be logged.¶
A clash between an existing member zone's name and an incoming member zone's name (via transfer or update) may be an attempt to migrate a zone to a different catalog, but it should not be treated as one except as described inSection 4.3.1.¶
When a member zone is removed from a specific catalog zone, a consumerMUST NOT remove the zone and associated state data if the zone was not configured from that specific catalog zone.The zone and associated state (such as zone data and DNSSEC keys)MUST be removed from the consumer when and only when the zone was configured initially from the same catalog.Consumer operators may consider temporarily archiving associated state to facilitate mistake recovery.¶
When the member node's label value (<unique-N>
) changes via a single update or transfer, catalog consumersMUST process this as a member zone removal, including the removal of all the zone's associated state (as described inSection 5.3), and then immediately process the member as a newly added zone to be configured in the same catalog.¶
If all consumers of the catalog zones involved support thecoo
property, it isRECOMMENDED to perform migration of a member zone by following the procedure described inSection 4.3.1. Otherwise, the migration of a member zone from a catalog zone$OLDCATZ
to a catalog zone$NEWCATZ
has to be done by first removing the member zone from$OLDCATZ
and then adding the member zone to$NEWCATZ
.¶
If in the process of a migration some consumers of the involved catalog zones did not catch the removal of the member zone from$OLDCATZ
yet (because of a lost packet or downtime or otherwise) but already saw the update of$NEWCATZ
containing the addition of that member zone, they may consider this update to be a name clash (seeSection 5.2) and, as a consequence, the member is not migrated to$NEWCATZ
.This possibility needs to be anticipated with a member zone migration.Recovery from such a situation is out of the scope of this document.For example, it may entail a manually forced retransfer of$NEWCATZ
to consumers after they have been detected to have received and processed the removal of the member zone from$OLDCATZ
.¶
It may be desirable to reset state (such as zone data and DNSSEC keys) associated with a member zone.¶
A zone state reset may be performed by a change of the member node's name (seeSection 5.4).¶
Although any valid domain name can be used for the catalog name $CATZ, a catalog producerMUST NOT use names that are not under the control of the catalog producer (with the exception of reserved names). It isRECOMMENDED to use either a domain name owned by the catalog producer or a domain name under a suitable name such as "invalid."[RFC6761].¶
Catalog zones on secondary name servers would have to be set up manually, perhapsas static configuration, similar to how ordinary DNS zones are configured when catalog zones or another automatic configuration mechanism are not in place.Additionally, the secondary needs to be configured as a catalog consumer for the catalog zone to enable processing of the member zones in the catalog, such as automatic synchronization of the member zones for secondary service.¶
Operators of catalog consumers should note that secondary name servers mayreceive DNS NOTIFY messages[RFC1996] for zones before they are seen asnewly added member zones to the catalog from which that secondary isprovisioned.¶
Although they are regular DNS zones, catalog zones only contain information forthe management of a set of authoritative name servers. To prevent unintendedexposure to other parties, operatorsSHOULD limit the systems able to query these zones.¶
Querying/serving catalog zone contents may be inconvenient via DNSdue to the nature of their representation.Therefore, an administrator may want to use a different method forlooking at data inside the catalog zone. Typicalqueries might include dumping the list of member zones, dumping a member zone'seffective configuration, querying a specific property value of a member zone,etc. Because of the structure of catalog zones, it may not be possible toperform these queries intuitively, or in some cases at all, using DNS QUERY.For example, it is not possible to enumerate the contents of a multivaluedproperty (such as the list of member zones) with a single QUERY.Implementations are therefore advised to provide a tool that uses either theoutput of AXFR or an out-of-band method to perform queries on catalog zones.¶
Great power comes with great responsibility. Catalog zones simplify zoneprovisioning by orchestrating zones on secondary name servers from a singledata source: the catalog. Hence, the catalog producer has great power andchanges must be treated carefully. For example, if the catalog is generated bysome script and this script generates an empty catalog,millions of member zones may get deleted from their secondaries within seconds,and all the affected domains may be offline in a blink of an eye.¶
As catalog zones are transmitted using DNS zone transfers,it isRECOMMENDED that catalog zone transfers be protected from unexpected modifications by way of authentication, e.g., by using a Transaction Signature (TSIG)[RFC8945] or Strict or Mutual TLS authentication with DNS zone transfer over TLS or QUIC[RFC9103].¶
Use of DNS UPDATE[RFC2136] to modify the content of catalog zonesSHOULD similarly be authenticated.¶
Zone transfers of member zonesSHOULD similarly be authenticated.TSIG shared secrets used for member zonesSHOULD NOT be mentioned in the catalog zone data.However, key identifiers may be shared within catalog zones.¶
Catalog zones reveal the zones served by their consumers, including their properties.To prevent unintentional exposure of catalog zone contents, it isRECOMMENDED to limit the systems able to query them and to conduct catalog zone transfers confidentially[RFC9103].¶
As with regular zones, primary and secondary name servers for a catalog zone maybe operated by different administrators. The secondary name servers may beconfigured as a catalog consumer to synchronize catalog zones from the primary, but the primary'sadministrators may not have any administrative access to the secondaries.¶
Administrative control over what zones are served from the configured name servers shifts completely from the server operator (consumer) to the "owner" (producer) of the catalog zone content.To prevent unintended provisioning of zones, a consumer(s)SHOULD scope the set ofadmissible member zones by any means deemed suitable (such as statically viaregular expressions, or dynamically by verifying against another databasebefore accepting a member zone).¶
With migration of member zones between catalogs using thecoo
property, it is possible for the owner of the target catalog (i.e.,$NEWCATZ
) to take over all its associated state with the zone from the original owner (i.e.,$OLDCATZ
) by maintaining the same member node label (i.e.,<unique-N>
).To prevent the takeover of the zone-associated state, the original owner has to enforce a zone state reset by changing the member node label (seeSection 5.6) before or simultaneously with adding thecoo
property.¶
IANA has created the "DNS Catalog Zones Properties" registry under the "Domain Name System (DNS) Parameters" registry as follows:¶
Property Prefix | Description | Status | Reference |
---|---|---|---|
zones | List of member zones | Standards Track | RFC 9432 |
version | Schema version | Standards Track | RFC 9432 |
coo | Change of Ownership | Standards Track | RFC 9432 |
group | Group | Standards Track | RFC 9432 |
*.ext | Custom properties | Private Use | RFC 9432 |
The meanings of the fields are as follows:¶
The following is a full example of a catalog zone containing three member zones with various properties:¶
catalog.invalid. 0 SOA invalid. ( invalid. 1625079950 3600 600 2147483646 0 )catalog.invalid. 0 NS invalid.example.vendor.ext.catalog.invalid. 0 CNAME example.net.version.catalog.invalid. 0 TXT "2"nj2xg5b.zones.catalog.invalid. 0 PTR example.com.nvxxezj.zones.catalog.invalid. 0 PTR example.net.group.nvxxezj.zones.catalog.invalid. 0 TXT ( "operator-x-foo" )nfwxa33.zones.catalog.invalid. 0 PTR example.org.coo.nfwxa33.zones.catalog.invalid. 0 PTR ( newcatz.invalid. )group.nfwxa33.zones.catalog.invalid. 0 TXT ( "operator-y-bar" )metrics.vendor.ext.nfwxa33.zones.catalog.invalid. 0 CNAME ( collector.example.net. )¶
Our deepest thanks and appreciation go toStephen Morris,Ray Bellis, andWitold Krecicki who initiated this document and did the bulk of the work.¶
Catalog zones originated as the chosen method among various proposals that were evaluated at Internet Systems Consortium (ISC) for easy zone management. The chosen method of storing the catalog as a regular DNS zone was proposed byStephen Morris.¶
The initial authors discovered thatPaul Vixie's earlier[Metazones] proposal implemented a similar approach, and they reviewed it. Catalog zones borrow some syntax ideas from[Metazones], as both share this scheme of representing the catalog as a regular DNS zone.¶
Thanks toLeo Vandewoestijne. Leo's presentation in the DNS devroom at FOSDEM'20[FOSDEM20] was one of the motivations to take up and continue the effort of standardizing catalog zones.¶
Thanks toJoe Abley,David Blacka,Brian Conry,Klaus Darilion,Brian Dickson,Tony Finch,Evan Hunt,Shane Kerr,Warren Kumari,Patrik Lundin,Matthijs Mekking,Victoria Risk,Josh Soref,Petr Spacek,Michael StJohns,Carsten Strotmann, andTim Wicinski for reviewing earlier draft versions and offering comments and suggestions.¶