Hi @ctrlbrk ,
the fix mentioned in the first post has been merged to the master of unbound and released with version 1.13.0.
On KeyDB side you "only" need to add following lines to each instance:
replicaof XXX.XXX.XX.XX 6379
The "replicaof" needs to be the IP address of the instance to sync with.
On Unbound side you need to configure:
Important here is that you need to build Unbound with redis and cachedb support. To do so add following arguments to "configure"-command:
and install all dependencies.
With this configuration your Unbound instances should put the resolved domains into KeyDB and KeyDB takes care of synching them to all other KeyDB instances.
On Raspbian you can use these command lines after you have checked out Unbound code and navigated into the folder:
sudo apt-get install -y libhiredis-dev libssl-dev libevent-dev libexpat1-dev bison
./configure --prefix=/usr --sysconfdir=/etc --disable-static --with-libevent --with-libhiredis --enable-cachedb --with-pidfile=/run/unbound.pid
sudo make install
Hope that helps!