Only hide successful queries of the system resolver

This commit is contained in:
Daniel
2022-02-25 15:35:21 +01:00
parent 1346123d6f
commit 6cbe33ae70
2 changed files with 6 additions and 5 deletions

View File

@@ -201,6 +201,12 @@ func handleRequest(ctx context.Context, w dns.ResponseWriter, request *dns.Msg)
return
}
// Mark successfull queries as internal in order to hide them in the simple interface.
// These requests were most probably made for another process and only add confusion if listed.
if conn.Process().IsSystemResolver() {
conn.Internal = true
}
// Save the request as open, as we don't know if there will be a connection or not.
network.SaveOpenDNSRequest(q, rrCache, conn)
firewall.UpdateIPsAndCNAMEs(q, rrCache, conn)