Re:We Cracked a 512-Bit DKIM Key for Less Than $8 in the Cloud
by mjl- on Wednesday January 08, 2025 @12:12PM
(#42636265)
DKIM records are just DNS TXT records. Do they have a limit on the size of TXT records? Or are they going out of their way to try to parse the TXT records you're adding that look like DKIM records, failing on them, and then refusing to add them?
[ Parent
| on HN ]
Re:We Cracked a 512-Bit DKIM Key for Less Than $8 in the Cloud
by nyrikki on Wednesday January 08, 2025 @01:19PM
(#42636900)
RFC1035 imposes a 255 character limit per string on TXT records .
Re:We Cracked a 512-Bit DKIM Key for Less Than $8 in the Cloud
by mjl- on Wednesday January 08, 2025 @02:17PM
(#42637477)
Yes, so you use multiple strings (in a single record) if you need longer values:
"first 255 bytes" "second 255 bytes" "etc"
DNS clients combine the 255-byte strings back into a single string.
Re:We Cracked a 512-Bit DKIM Key for Less Than $8 in the Cloud
by teddyh on Thursday January 09, 2025 @05:08AM
(#42643704)
> DNS clients combine the 255-byte strings back into a single string.
No, DKIM clients and SPF clients do that. Generic DNS clients, however, are in theory free to ascribe any semantic meaning they like to the string separations.