anr-bmbf-pivot / draft-lenders-dns-cbor

A Compressed CBOR Representation Format for DNS Messages
Other
2 stars 0 forks source link

Represent names as their compontents #2

Closed miri64 closed 6 days ago

miri64 commented 1 year ago

During the mailing list discussions of -03, @chrysn proposed to represent names as their components instead of tstr, similar to how it is done in draft-ietf-core-href:

host-name   = (*text) ; lowercase, NFC labels

That is, rather than expressing some.hostname.example.com as "some.hostname.example.com", it goes for "some", "hostname", "example", "com"

There are several advantages to that representation:

The only disadvantage we found so far is that there is no straightforward way to use the value or inverted references for names with this... But maybe, if we have DNS-like name compression, this wouldn't be needed anyways.

chrysn commented 1 year ago

I don't think that is legal in DNS domain names

AIU it is perfectly legal in DNS, it's just that URIs can not (due to their interesting escaping rules) express that dot, not even with percent encoding (maybe punycode though?) -- so it works only where DNS names are never put into a URI.

miri64 commented 1 year ago

It is legal, but strongly discouraged: https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.1

miri64 commented 6 days ago

Addressed in the two most recent versions