AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Expose "blocked_response_ttl" to the web admin UI

Open Cebeerre opened this issue 6 years ago • 5 comments

Problem Description

Adguard Home always answers with a minimum ttl of 10 seconds (using Null IP) for anything resolved by AGH itself: rewrites and filters. My understanding was that it was going to use the same values set in the cache settings (as a default) but it seems hardcoded to 10 seconds somewhere.

EDIT: @ameshkov pointed me to blocked_response_ttl in AdGuardHome.yaml

Proposed Solution

It would be great having this parameter exposed to the web interface.

Cebeerre avatar Dec 01 '20 16:12 Cebeerre

so if i understand what it means it means the response rest in the windows/linux/mac/ios/android/ cache 10 seconds only ? if it's the case i think it would be interesting to increase it to 5 minutes like nextdns do (300 TTL).

ghost avatar Dec 01 '20 16:12 ghost

Renamed the task.

so if i understand what it means it means the response rest in the windows/linux/mac/ios/android/ cache 10 seconds only ?

No, it means that "blocked" responses are cached for 10 seconds only (so that when you unblock a domain, you could see the changes quickly).

ameshkov avatar Dec 02 '20 10:12 ameshkov

I know this has not been touched in 2 years but I would really like to see this added. It’s kind of a pain to edit the yaml file for docker desktop users on windows. There is also probably a lot of people unaware the default block ttl is 10 seconds and would like to have higher

SpencerIsGiddy avatar Feb 11 '23 16:02 SpencerIsGiddy

Is this no covered by the "Blocked response TTL" configuration item in the DNS settings?

image

ryanwinter avatar Jan 09 '25 18:01 ryanwinter

Hello! I apologize for the long delay in responding.

As far as I understand, this feature has already been implemented. The blocked_response_ttl parameter is now available in the web interface as the “Blocked Response TTL” field on the DNS settings page.

I am closing this issue as resolved. If you have any further questions, please reopen this issue or create a new one.

sofvaskina avatar Jun 05 '26 15:06 sofvaskina