Don't convert static records to lowercase

This commit is contained in:
Max 2023-12-03 01:19:57 +01:00 committed by GitHub
parent 27e8251d11
commit 22cd445143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
dns.go
View File

@ -51,7 +51,7 @@ func (d *DNSServer) Start(errorChannel chan error) {
// ParseRecords parses a slice of DNS record string
func (d *DNSServer) ParseRecords(config DNSConfig) {
for _, v := range config.General.StaticRecords {
rr, err := dns.NewRR(strings.ToLower(v))
rr, err := dns.NewRR(v)
if err != nil {
log.WithFields(log.Fields{"error": err.Error(), "rr": v}).Warning("Could not parse RR from config")
continue