ishwarbb
133909c8f6
resolved: add configurable DNS cache size
...
Add CacheSize= option to [Resolve] section of resolved.conf to allow
configuring the maximum number of entries in the per-scope DNS cache.
The default remains 4096 entries. Setting this to 0 disables caching
(similar to Cache=no).
CacheSize= is only read when Cache=yes or Cache=no-negative. When
Cache=no, caching is fully disabled regardless of CacheSize=.
Changes:
- Add cache_size field to Manager struct
- Parse CacheSize= from resolved.conf via gperf
- Thread cache_size through dns_cache_put() and helper functions
- Replace hard-coded CACHE_MAX with the configurable cache_size
- When cache_size is 0 or Cache=no, flush cache and skip caching
- Add man page documentation for the new option
- Add unit tests for cache size enforcement
Co-developed-by: Claude <claude@anthropic.com >
2026-05-18 11:45:03 +01:00
..
2026-05-05 11:14:33 +02:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-05-18 02:55:56 +09:00
2026-05-18 07:26:44 +09:00
2026-04-30 11:12:33 +01:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-18 08:26:44 +02:00
2026-05-16 18:37:10 +02:00
2026-05-18 02:47:09 +09:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-04-30 11:12:33 +01:00
2026-05-18 10:39:04 +01:00
2026-05-16 18:37:10 +02:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-04-12 13:25:28 +01:00
2026-04-30 11:12:33 +01:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:36:08 +02:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-12 00:07:42 +01:00
2026-04-13 13:20:43 +02:00
2026-04-08 11:51:09 +01:00
2026-05-14 11:33:09 +02:00
2026-05-18 02:44:46 +09:00
2026-04-23 11:45:22 +02:00
2026-04-30 11:12:33 +01:00
2026-04-30 11:12:33 +01:00
2026-05-18 10:39:04 +01:00
2026-05-18 02:55:56 +09:00
2026-05-16 18:37:10 +02:00
2026-05-16 18:37:10 +02:00
2026-05-08 16:52:57 +02:00
2026-05-16 18:37:10 +02:00
2026-05-18 02:44:46 +09:00
2026-05-16 18:37:10 +02:00
2026-05-15 22:05:07 +02:00
2026-05-18 02:44:46 +09:00
2026-05-16 18:37:10 +02:00
2026-05-16 18:37:10 +02:00
2026-05-16 18:37:12 +02:00
2026-05-18 10:39:04 +01:00
2026-05-18 09:34:32 +09:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-18 02:55:56 +09:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-14 08:12:28 +02:00
2026-05-18 02:55:56 +09:00
2026-04-30 08:05:54 +02:00
2026-05-05 13:49:51 +02:00
2026-05-05 17:23:16 +02:00
2026-05-18 10:39:04 +01:00
2026-05-05 11:14:33 +02:00
2026-05-15 13:46:08 +01:00
2026-05-15 18:05:21 +00:00
2026-04-24 16:45:19 +01:00
2026-04-12 15:27:15 +02:00
2026-04-12 21:20:15 +01:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-05-05 17:23:16 +02:00
2026-05-16 18:37:10 +02:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-13 23:47:29 +01:00
2026-05-16 18:37:10 +02:00
2026-05-18 11:45:03 +01:00
2026-05-18 02:55:56 +09:00
2026-05-05 17:22:26 +02:00
2026-05-16 18:37:10 +02:00
2026-05-18 10:39:04 +01:00
2026-05-15 13:46:08 +01:00
2026-05-18 02:55:56 +09:00
2026-05-05 13:48:48 +02:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-12 00:07:42 +01:00
2026-05-16 18:37:10 +02:00
2026-05-18 08:51:09 +02:00
2026-05-18 10:39:04 +01:00
2026-04-30 11:12:33 +01:00
2026-05-18 07:26:44 +09:00
2026-05-16 18:37:10 +02:00
2026-04-16 19:19:02 +01:00
2026-05-09 11:36:55 +02:00
2026-04-30 11:12:33 +01:00
2026-04-30 11:12:33 +01:00
2026-05-18 02:55:56 +09:00
2026-05-18 09:41:22 +09:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-16 18:37:10 +02:00
2026-04-30 11:12:33 +01:00
2026-05-16 18:37:10 +02:00
2026-05-11 21:10:11 +02:00
2026-05-16 18:37:10 +02:00
2026-04-22 16:49:36 +02:00
2026-05-13 23:48:53 +02:00
2026-04-30 11:12:33 +01:00
2026-04-12 15:27:15 +02:00