named's configured cache size limit can be significantly exceeded
ISC BIND 9
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ISC BIND 9 |
| No fix yet |
Original description
Every `named` instance configured to run as a recursive resolver maintains a cache database holding the responses to the queries it has recently sent to authoritative servers. The size limit for that cache database can be configured using the `max-cache-size` statement in the configuration file; it defaults to 90% of the total amount of memory available on the host. When the size of the cache reaches 7/8 of the configured limit, a cache-cleaning algorithm starts to remove expired and/or least-recently used RRsets from the cache, to keep memory use below the configured limit.