Expose "blocked_response_ttl" to the web admin UI
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.
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).
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).
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
Is this no covered by the "Blocked response TTL" configuration item in the DNS settings?
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.