Closed miri64 closed 6 days 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.
It is legal, but strongly discouraged: https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.1
Addressed in the two most recent versions
During the mailing list discussions of
-03
, @chrysn proposed to represent names as their components instead oftstr
, similar to how it is done in draft-ietf-core-href:There are several advantages to that representation:
uint
s is to swap ttl in RR. This way, the first int in a CBOR array that potentially could contain names always would be identifiable as the name (questions always contain a name, so the firstuint
would just be the name).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.