Originally Reported by Florian Weimer.
TXT record data is presently validated incorrectly.
In DNS, TXT records are a non-empty list of strings, each string between 0 and 255 bytes long. The total length limit is somewhat less than 2**16, counting the characters of all strings and adding 1 for each element (irrespective of its length). The direct limit is 65535, but there are additional constraints in the DNS protocol which impose a smaller maximum length across all records for the same name/class/type tuple (so checking a single record is not possible in general).
Designate currently applies a strict length limit of 255, on the text format. This is insufficient for some SPF records. This is a functionality issue.
Fix proposed to branch: master /review. openstack. org/251864
Review: https:/