Modified the updateDomainWithCName function in cname.go to use a case-insensitive comparison (strings.EqualFold). This allows the function to correctly identify the CNAME records irrespective of case.
Added a new unit test TestCnameCaseInsensitive in cname_test.go to validate that the updateDomainWithCName function works correctly when the DNS record is in uppercase.
Fixes #1955
Changes:
Modified the
updateDomainWithCName
function incname.go
to use a case-insensitive comparison (strings.EqualFold
). This allows the function to correctly identify the CNAME records irrespective of case.Added a new unit test
TestCnameCaseInsensitive
incname_test.go
to validate that theupdateDomainWithCName
function works correctly when the DNS record is in uppercase.