dnsforward: imp code

This commit is contained in:
Dimitry Kolyshev 2024-07-08 10:54:03 +03:00
parent ba4a7e1c70
commit 559c3b79d7
1 changed files with 1 additions and 4 deletions

View File

@ -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
}