Affected by GO-2026-4289
and 2 other vulnerabilities
GO-2026-4289: CoreDNS gRPC/HTTPS/HTTP3 servers lack resource limits, enabling DoS via unbounded connections and oversized messages in github.com/coredns/coredns
GO-2026-4630: CoreDNS ACL Bypass in github.com/coredns/coredns
GO-2026-4635: CoreDNS Loop Detection Denial of Service Vulnerability in github.com/coredns/coredns
Package freq keeps track of last X seen events. The events themselves are not stored
here. So the Freq type should be added next to the thing it is tracking.
Update updates the number of hits. Last time seen will be set to now.
If the last time we've seen this entity is within now - d, we increment hits, otherwise
we reset hits to 1. It returns the number of hits.