From 559c3b79d7752021e9e75daf9f78af64ba0114fd Mon Sep 17 00:00:00 2001 From: Dimitry Kolyshev Date: Mon, 8 Jul 2024 10:54:03 +0300 Subject: [PATCH] dnsforward: imp code --- internal/dnsforward/process.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/dnsforward/process.go b/internal/dnsforward/process.go index bd556989..967956d0 100644 --- a/internal/dnsforward/process.go +++ b/internal/dnsforward/process.go @@ -145,9 +145,6 @@ const mozillaFQDN = "use-application-dns.net." // [Section 6.2 of RFC 6761]: https://www.rfc-editor.org/rfc/rfc6761.html#section-6.2 const healthcheckFQDN = "healthcheck.adguardhome.test." -// retryNoError is a retry time for NoError SOA. -const retryNoError = 60 - // processInitial terminates the following processing for some requests if // needed and enriches dctx with some client-specific information. // @@ -162,7 +159,7 @@ func (s *Server) processInitial(dctx *dnsContext) (rc resultCode) { q := pctx.Req.Question[0] qt := q.Qtype if s.conf.AAAADisabled && qt == dns.TypeAAAA { - pctx.Res = proxy.GenEmptyMessage(pctx.Req, dns.RcodeSuccess, retryNoError) + pctx.Res = s.newMsgNODATA(pctx.Req) return resultCodeFinish }