From e657899c32f94a92388c31000137cce95278e190 Mon Sep 17 00:00:00 2001 From: Dimitry Kolyshev Date: Tue, 13 Dec 2022 13:59:43 +0700 Subject: [PATCH] rewrite: storage --- internal/filtering/rewrite/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/filtering/rewrite/storage.go b/internal/filtering/rewrite/storage.go index d39ab1b1..4681ab4d 100644 --- a/internal/filtering/rewrite/storage.go +++ b/internal/filtering/rewrite/storage.go @@ -225,7 +225,7 @@ func (s *DefaultStorage) resetRules() (err error) { // matchesQType returns true if dnsrewrite matches the question type qt. func matchesQType(dnsrr *rules.DNSRewrite, qt uint16) (ok bool) { // Add CNAMEs, since they match for all types requests. - if dnsrr.RRType == dns.TypeCNAME { + if dnsrr.RRType == dns.TypeCNAME || dnsrr.NewCNAME != "" { return true }