Reduce open dns requests by better handling dual stack requests

This commit is contained in:
Daniel
2021-10-07 11:12:45 +02:00
parent 77d5b083eb
commit be0a94ba98
2 changed files with 18 additions and 13 deletions

View File

@@ -151,7 +151,7 @@ func handleRequest(ctx context.Context, w dns.ResponseWriter, request *dns.Msg)
// that will happen later anyway.
case network.VerdictUndecided, network.VerdictAccept:
// Save the request as open, as we don't know if there will be a connection or not.
network.SaveOpenDNSRequest(conn)
network.SaveOpenDNSRequest(conn, uint16(q.QType))
firewall.UpdateIPsAndCNAMEs(q, rrCache, conn)
default: