Affected by GO-2022-0368
and 4 other vulnerabilities
GO-2022-0368: Improper random number generation in github.com/coredns/coredns
GO-2024-3130: CoreDNS vulnerable to TuDoor Attacks in github.com/coredns/coredns
GO-2025-3743: CoreDNS Vulnerable to DoQ Memory Exhaustion via Stream Amplification in github.com/coredns/coredns
GO-2025-3942: CoreDNS: DNS Cache Pinning via etcd Lease ID Confusion in github.com/coredns/coredns
GO-2026-4289: CoreDNS gRPC/HTTPS/HTTP3 servers lack resource limits, enabling DoS via unbounded connections and oversized messages 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.