diff --git a/dnsforward/dnsforward.go b/dnsforward/dnsforward.go index daa79efe..3ecd80d5 100644 --- a/dnsforward/dnsforward.go +++ b/dnsforward/dnsforward.go @@ -432,6 +432,7 @@ func (s *Server) handleDNSRequest(p *proxy.Proxy, d *proxy.DNSContext) error { if res.Reason == dnsfilter.ReasonRewrite && len(res.CanonName) != 0 { d.Req.Question[0] = originalQuestion + d.Res.Question[0] = originalQuestion if len(d.Res.Answer) != 0 { answer = append(answer, d.Res.Answer...) // host -> IP