Closed gbxyz closed 3 years ago
Fixed in 60773ee
Thanks @wtoorop! Do you know when this might find its way into a release?
https://datatracker.ietf.org/doc/html/rfc1035#section-5.1 says:
Any combination of tabs and spaces act as a delimiter between the separate items that make up an entry.
Since the two character strings in the original TXT record are separate, ISTM per the RFC there should be at least one space or TAB between them; thus, the original TXT record is actually invalid.
Consider this TXT record:
it has two text segments,
foo
andbar
, enclosed in quotes - but without a space in between.named-compilezone
accepts RRs in this format, although it emits the same TXT record with a space between each segment.However,
ldns-read-zone
produces this output:The above output is mangled by the addition of
\"
to the last text segment.named-compilezone
is probably being too forgiving here (I can't find chapter and verse in an RFC about whether a space between two text segments is expected, but it seems to me like it should), butldns-read-zone
is definitely doing something wrong. It should either reject the RR or coerce it in the same way thatnamed-compilezone
does.(ldns version: 1.7.1)