Skip to content

Commit

Permalink
dnsforward: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Jul 8, 2024
1 parent ba4a7e1 commit 559c3b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/dnsforward/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand All @@ -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
}
Expand Down

0 comments on commit 559c3b7

Please sign in to comment.