NLnetLabs / unbound

Unbound is a validating, recursive, and caching DNS resolver.
https://nlnetlabs.nl/unbound
BSD 3-Clause "New" or "Revised" License
3.16k stars 360 forks source link

[FR] Add support for valkey #1036

Closed glitsj16 closed 8 months ago

glitsj16 commented 8 months ago

Realizing it's early days, but now that the Linux Foundation officially launched valkey, my first thought was to replace unbound's redis backend with it.

Any plans/roadmap on the horizon?

wcawijngaards commented 8 months ago

Unbound uses the libhiredis library for the cachedb module. That is a C client interface. It seems to be in the valkey repo at valkey/deps/hiredis.

I would think that it would work straight away. Since it is a copy of the externally developed hiredis library and that is what unbound uses, I guess that would work without needing changes in Unbound. Unbound has support to be able to support different backends for the cachedb module. It can be configured with the backend: "redis" option in the cachedb: section of the config.

glitsj16 commented 8 months ago

Thank you for the heads-up. I actually already use the redis backend on my Arch Linux box. Works fine. Leaving it up to the Arch Linux package manager for hiredis if they want to change to the valkey repo or not.

Regards