Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unbound cache persistence (cachedb redis backend) [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
vktgz
n00b
n00b


Joined: 21 Jun 2004
Posts: 65
Location: Gentown, Tuxland

PostPosted: Fri Dec 13, 2024 2:10 pm    Post subject: unbound cache persistence (cachedb redis backend) [solved] Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1951

PostPosted: Fri Dec 13, 2024 2:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
vktgz
n00b
n00b


Joined: 21 Jun 2004
Posts: 65
Location: Gentown, Tuxland

PostPosted: Mon Dec 16, 2024 6:50 am    Post subject: Reply with quote

This is it, I somehow missed that line. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum