View previous topic :: View next topic |
Author |
Message |
vktgz n00b
Joined: 21 Jun 2004 Posts: 65 Location: Gentown, Tuxland
|
Posted: Fri Dec 13, 2024 2:10 pm Post subject: unbound cache persistence (cachedb redis backend) [solved] |
|
|
I'm trying to enable unbound cache persistence. I have emerged unbound with redis flag (tried versions 1.20 and 1.22). I have redis service enabled and running, and enabled cachedb redis backend in unbound.conf:
Code: | cachedb:
backend: "redis"
redis-server-host: 127.0.0.1
redis-server-port: 6379 |
Unbound is working fine, serves cached records from memory but it never writes anything to redis.
When I check redis contents
Code: | redis-cli info keyspace |
there is nothing there. And when I restart unbound I can confirm the cache is empty.
There are no mentions of cachedb or redis in unbound log and no activity in redis log.
I have no idea whats wrong.
Last edited by vktgz on Mon Dec 16, 2024 6:51 am; edited 1 time in total |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1951
|
Posted: Fri Dec 13, 2024 2:25 pm Post subject: |
|
|
Did you enable it in the server config? e.g.: Code: | server:
module-config: "validator cachedb iterator" |
This is mentioned in the man page as well as the sample configuration |
|
Back to top |
|
|
vktgz n00b
Joined: 21 Jun 2004 Posts: 65 Location: Gentown, Tuxland
|
Posted: Mon Dec 16, 2024 6:50 am Post subject: |
|
|
This is it, I somehow missed that line. Thanks! |
|
Back to top |
|
|
|