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
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