Internet-Draft DNS Relative Labels July 2024
van Hartingsveldt Expires 22 January 2025 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-yocto-dns-relative-label-00
Published:
Intended Status:
Informational
Expires:
Author:
B.J. van Hartingsveldt
Yocto

Relative Labels in the Domain Name System

Abstract

This document defines a new DNS Label Type using the Extension Mechanisms for DNS to indicate when a relative domain name is used.

Status of This Memo

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 22 January 2025.

Table of Contents

1. Introduction

This document defines a "Relative Label" which may appear within domain names. This new label type enables resource records to be stored with their relative form (e.g. "www" instead of "www.example.com.").

2. Terminology

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].

3. Motivation

Relative labels are intended to efficiently solve the problem of using FQDNs when a relative label is wanted. For example, when someone wants to add the MX record "0 mx" instead of "0 mx.example.com." using DNS UPDATE [RFC2136]. It is also useful for DNS providers that store all the records in binary format. Saving data in binary requires less space and the data is already in wire format, but at the moment there is no way to save relative domains.

4. Label Format

Relative labels can only appear in the end of a relative FQDN, like the zero octet only appears in the end of an absolute FQDN. Message compression is possible when also using the relative label, but because the relative label already gives the possibility to leave out the zone name, message compression will likely have less effect.

4.1. Wire format

 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|0 1|    ELT    |
+-+-+-+-+-+-+-+-+
Figure 1
ELT
000000 binary, the six-bit extended label type [RFC2671] assigned to the Relative Label.

4.2. Representation format

As described in [RFC1035], relative domain names are domain names that don't end with a dot.

4.3. Canonical Representation and Sort Order

Before records are sorted for DNSSEC [RFC2065] purposes, the resource record MUST be converted to canonical form. This simply happens by replacing the relative label by the whole zone name. Also, the relative label should not appear when doing queries, except for AXFR and IXFR.

5. IANA Considerations

This document defines one Extended Label Type, termed the Relative Label, and requests registration of the code point 000000 binary in the space defined by [RFC2671].

6. Security Considerations

All security considerations which apply to traditional ASCII DNS labels apply equally to binary labels. The canonicalization and sorting rules of section 3.3 allow these to be addressed by DNS Security [RFC2065].

7. Normative References

[RFC1035]
Mockapetris, P., "Domain names - implementation and specification", RFC 1035, DOI 10.17487/RFC1035, , <https://www.rfc-editor.org/rfc/rfc1035>.
[RFC2065]
Eastlake, D., "Domain Name System Security Extensions", RFC 2065, DOI 10.17487/RFC2065, , <https://www.rfc-editor.org/rfc/rfc2065>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC2136]
Vixie, P., "Dynamic Updates in the Domain Name System (DNS UPDATE)", RFC 2136, DOI 10.17487/RFC2136, , <https://www.rfc-editor.org/rfc/rfc2136>.
[RFC2671]
Vixie, P., "Extension mechanisms for DNS (EDNS0)", RFC 2119, DOI 10.17487/RFC2671, , <https://www.rfc-editor.org/rfc/rfc2119>.

Author's Address

B.J. van Hartingsveldt
Yocto