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 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 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