fixed wildcard header
This commit is contained in:
parent
fb5e3eb26d
commit
08e70f8f94
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user