How to keep Unbound cache always

Hello Everyone,
i have tried many settings.. could anyone help How to keep Unbound cache always...
Thanks in advance...

Don't think you can. Setting TTL to maximum and turning on prefetch should be pretty close.

1 Like

If you use Adblock package with Unbound, it will run the unbound-control dump_cache and load_cache commands when restarting the instance.

Otherwise, you would need to update the unbound init script to run those commands at stop and start of the service.

1 Like

Thanks for your response.. may I know where I have to put ttl max and prefetech option under unbound config at what line?

The OpenWrt README, you may have to step out of the UCI config to native unbound config for prefetch.

You don't want to keep the cache indefinite.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.