You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a zone with long TXT records (for example DKIM records with 2048 bit keys), the TXT record becomes to long and named-checkzone fails to validate the zone.
It seems that adding the following line to the ZoneFileProvider class splits up the record nicely:
if record._type in ('SPF', 'TXT'):
# TXT values need to be quoted
value = value.replace('"', '\\"')
value = record.chunked_value(value) <--- This line
value = f'"{value}"'
I could make this into a pull request if needed.
The text was updated successfully, but these errors were encountered:
I think I ran into this when working on octodns/octodns#1172 and addressed it there, but since that didn't ship, for now, it probably makes sense to get this sorted standalone. Will queue it up to look into.
When generating a zone with long TXT records (for example DKIM records with 2048 bit keys), the TXT record becomes to long and named-checkzone fails to validate the zone.
It seems that adding the following line to the ZoneFileProvider class splits up the record nicely:
I could make this into a pull request if needed.
The text was updated successfully, but these errors were encountered: