From 980ff4c717156db03ec2ecca0f6df4ee2865f17c Mon Sep 17 00:00:00 2001 From: Hugo Chagas Date: Sun, 18 May 2025 10:26:21 -0300 Subject: [PATCH 1/3] Update CacheDB configuration on README Added detailed instructions on how to configure the cache module using Redis as a backend. --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7ff8c7e..a503c28 100644 --- a/README.md +++ b/README.md @@ -39,16 +39,13 @@ docker run --name unbound \ The cache DB module was compiled into daemon, but is disabled by default. To enable this module, follow this steps: -- Modify - [unbound.conf](https://unbound.docs.nlnetlabs.nl/en/latest/manpages/unbound.conf.html#cache-db-module-options) - to add the following directive: - - > module-config: "validator cachedb iterator" - -- Create a `cachedb.conf` under your custom configuration directory - `/path/to/config/custom.conf.d` with Redis credentials: +- Create a `cachedb.conf` under your custom configuration directory `/path/to/config/custom.conf.d`; +- Add a `server` directive with module configuration to enable `cachedb` module; +- Add a `cachedb` directive with Redis credentials; ```bash +server: + module-config: "validator cachedb iterator" cachedb: backend: "redis" redis-server-host: redis From 6917152b52d66d4756790fd3351e5efd0084d252 Mon Sep 17 00:00:00 2001 From: Hugo Chagas Date: Sun, 18 May 2025 10:34:17 -0300 Subject: [PATCH 2/3] Update cachedb.conf.example --- rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example b/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example index 47b0bb1..e3bf15a 100644 --- a/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example +++ b/rootfs_overlay/etc/unbound/custom.conf.d/cachedb.conf.example @@ -1,3 +1,5 @@ +server: + module-config: "validator cachedb iterator" cachedb: backend: "redis" redis-server-host: redis From 8cb1c516d5f56d01d88cada29251a33c527950fc Mon Sep 17 00:00:00 2001 From: Hugo Chagas Date: Sun, 18 May 2025 10:34:38 -0300 Subject: [PATCH 3/3] Update cachedb.conf --- examples/redis/custom.conf.d/cachedb.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/redis/custom.conf.d/cachedb.conf b/examples/redis/custom.conf.d/cachedb.conf index c9e3baa..e3bf15a 100644 --- a/examples/redis/custom.conf.d/cachedb.conf +++ b/examples/redis/custom.conf.d/cachedb.conf @@ -1,6 +1,5 @@ server: module-config: "validator cachedb iterator" - cachedb: backend: "redis" redis-server-host: redis