Skip to content

Fixed rdata parser for record length determination - #875

Merged
peteeckel merged 2 commits into
mainfrom
fix/split-long-dcim-records
Aug 24, 2026
Merged

Fixed rdata parser for record length determination#875
peteeckel merged 2 commits into
mainfrom
fix/split-long-dcim-records

Conversation

@peteeckel

Copy link
Copy Markdown
Collaborator

fixes #874

The issue is rooted in the way dnspython.rdata.from_text() works.

The DKIM record contains semicola, which the parser interprets as comment signs unless the whole record value passed to from_text() is quoted properly, i.e. enclosed in double quotes. As a result, only v=DKIM1 is recognised as the value of the record to test, and the length on any DKIM (or SPF, or ...) record is always OK.

That results in the record not being split, which causes the issue.

@peteeckel
peteeckel merged commit c951e9e into main Aug 24, 2026
11 checks passed
@peteeckel
peteeckel deleted the fix/split-long-dcim-records branch August 24, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic TXT record splitting fails on long DKIM records

1 participant