Skip to content

2026-10-07

Choose a tag to compare

@github-actions github-actions released this 07 Oct 18:15
· 7 commits to main since this release
Make existing-record checks case-insensitive

Summary:
`HasRecord` compared DNS owner names with `==`, even though DNS names are case-insensitive. If an equivalent owner already existed with different ASCII casing, `AdditionalSectionForRecords` could append a duplicate `A` or `AAAA` record.

- Canonicalize the lookup name and owner names in the Answer, Authority, and Additional sections with `dns.CanonicalName`. This applies canonicalization (ASCII lowercase and fully qualified) without Unicode case folding.
- Add mixed-case coverage for all three response sections.

Reviewed By: pdubovitsky

Differential Revision: D123474319

fbshipit-source-id: 7b5e3a7ac939c5c73bbe11880978ffb9d1664841