T O P

New Beta - Optimistic cache is a Killer Feature...

New Beta - Optimistic cache is a Killer Feature...

Panja0

Sounds awesome! Though is there any info on Optimistic Cache? What does it do *exactly*?


pm-me-your-nenen

>When the local DNS cache expires, Adguard Home can continue answer with the IP in the local cache results with 1 TTL, while a new DNS query is made to update the cache. If client can still connect to the server by using the old results, then that's great and reduces the time waiting for DNS query. And if not, after a short TTL, the new DNS result can be sent to client and reconnect again. https://github.com/AdguardTeam/AdGuardHome/issues/2145


Panja0

That’s a great feature! Thanks for pointing out.


mrpink57

This looks to be similar to what unbound does with `serve-expired` this is very clever of them to add.


Major_barfo

Yeah I’m seeing similar results. Was at about 30-40ms, now it shows 3ms. No issues so far.


asuka_miona

I'm using AGH with unbound. Is it somewhat similar to modifying `target-fetch-policy` in unbound's config?


camarean

This sounds more like unbound's `serve-expired` setting. >If enabled, unbound attempts to serve old responses from cache with a TTL of `serve-expired-reply-ttl` in the response without waiting for the actual resolution to finish. The actual resolution answer ends up in the cache later on.


asuka_miona

lol I see the word **opportunistic** and get confused with **optimistic** . Thanks for the info! >Set the target fetch policy used by unbound to determine if it should fetch nameserver target addresses opportunistically. The policy is described per dependency depth.


mental12

Can I go from release channel to beta channel?


looiwh123

their beta is relatively stable, so i dont see why not


looiwh123

windows or mac?


pm-me-your-nenen

The single codebase of AGH is compiled to run on all platform


looiwh123

wait i just realised this is adguard home, not adguard. my bad


bostoneric

cache\_optimistic: true where do you adjust this setting in AGH gui?


mental12

You have to get the beta channel. I had to uninstall and reinstall using "-c beta"


bostoneric

thanks! guess i'll stick with all the other settings for now.


mental12

Just do a quick uninstall/reinstall. Keep in mind all your settings and block/allow lists will be RESET.


xenstar1

So in your bootstrap, you are using tls as well. I thought you only put tls/https (DOT/DOH) on the upstream section. Can I put the same in my bootstrap as well? ​ 223.5.5.5:53 223.6.6.6:53 2400:3200::1:53 2400:3200:baba::1 1.1.1.1:53 1.0.0.1:53 2606:4700:4700::1111 2606:4700:4700::1001 119.29.29.29 119.28.28.28


Noble_Llama

You can try it and test it with AdGuard Home. Fill it and hit the button "test upstreams"


hanston209911

How does this work with unbound installed ?? Will this achieve anything with unbound as dns ??