Hi, 

> What does cachedb/redis bring us, how these can be used?

Unbound documentation is always a good read :)


It states [1]:

"If this module is enabled and configured, the specified backend database works 
as a second level cache; when Unbound cannot find an answer to a query in its 
built-in in-memory cache, it consults the specified backend. If it finds a 
valid answer in the backend, Unbound uses it to respond to the query without 
performing iterative DNS resolution. If Unbound cannot even find an answer in 
the backend, it resolves the query as usual, and stores the answer in the 
backend."

It's also used when Unbound is also configured to serve stale answers (RFC 8767)

> Should apparmor profile be updated for it to work?

Unbound can use 2 backends: the default is a in-memory backend (named 
'testframe' so not really useful) and redis. Unbound connects to redis using 
TCP. No needs to be able to access redis' pidfile. Therefore my guess is that 
the currect apparmor profile should work. Of course, it needs to be tested.

Regards,
Shaft

[1]: 
https://unbound.docs.nlnetlabs.nl/en/latest/manpages/unbound.conf.html#cache-db-module-options

Reply via email to