Closed matheswaran99 closed 1 year ago
The content of a TXT record is a sequence of \
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / TXT-DATA / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: TXT-DATA One or more <character-string>s.
TXT RRs are used to hold descriptive text. The semantics of the text depends on the domain where it is found.
\
is a single length octet followed by that number of characters. \ is treated as binary information, and can be up to 256 characters in length (including the length octet).
Some higher-level protocols such as SPF interpret a TXT record containing multiple \
As mentioned above, this is unfortunately a limitation in DNS itself and how to address it is protocol specific. Closing.
In some cases the TXT record might have more than 255 characters. But dns does not support with more than 255 characters. And also getting error like "dns: string exceeded 255 bytes in txt".