fixed wildcard header

This commit is contained in:
Niklas 2020-12-23 12:57:12 +01:00
parent fb5e3eb26d
commit 08e70f8f94

View File

@ -172,8 +172,9 @@ func createServer(zones []zone, config config, aclList map[string]*net.IPNet) *d
searchDomain := "*." + dns.Fqdn(strings.Join(parts, "."))
foundDomain := rrs[searchDomain]
for _, rr := range foundDomain {
rr.Header().Name = q.Name
m.Answer = append(m.Answer, rr)
newRR := rr
newRR.Header().Name = q.Name
m.Answer = append(m.Answer, newRR)
}
}