[client] Normalize DNS record names to lowercase in local handler update (#3323)

* [client] Normalize DNS record names to lowercase in lookup
This commit is contained in:
hakansa
2025-02-14 13:13:40 +03:00
committed by GitHub
parent c4a6dafd27
commit 039a985f41
2 changed files with 3 additions and 0 deletions

View File

@@ -454,6 +454,7 @@ func (s *DefaultServer) buildLocalHandlerUpdate(customZones []nbdns.CustomZone)
if record.Class != nbdns.DefaultClass {
return nil, nil, fmt.Errorf("received an invalid class type: %s", record.Class)
}
key := buildRecordKey(record.Name, class, uint16(record.Type))
localRecords[key] = record
}