From 090f5498331844ad6d5a8dc975c1d0511b47565a Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Thu, 7 Nov 2019 15:27:39 +0300 Subject: [PATCH] - dns rewrites: CNAME record didn't work --- dnsforward/dnsforward.go | 1 + 1 file changed, 1 insertion(+) 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