Skip to content

feat: Normalize all "targethost" and hex-encoded fields - #4944

Merged
TomOnTime merged 16 commits into
mainfrom
tlim_normalizetarget
Sep 30, 2026
Merged

TomOnTime merged 16 commits into
mainfrom
tlim_normalizetarget

Conversation

@TomOnTime

@TomOnTime TomOnTime commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Issue

Not all fields are normalized (changed to lowercase) so that future comparisons do not need to be case aware.

This issue was fixed for CNAME in #4940 but other record fields, such as the MX record's Mx, are not normalized.

Tracking which record type fields need to be normalized is a PITA.

Resolution

Create a function normalizeRDATA() which normalizes fields. The function will be code-generated so that future rtypes will be properly normalized.

While we're at it, let's normalize hex data to lowercase instead of uppercase like the rest of the world does.

@TomOnTime TomOnTime changed the title refactor: Normalize target fields using codegen feat: Normalize all "targethost" and hex-encoded fields Sep 30, 2026
@TomOnTime
TomOnTime merged commit 94a262d into main Sep 30, 2026
69 of 72 checks passed
@TomOnTime
TomOnTime deleted the tlim_normalizetarget branch September 30, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment