Support TTL modifier in DNS filtering rules
Opened this issue · 0 comments
Prerequisites
-
I have checked the Wiki and Discussions and found no answer
-
I have searched other issues and found no duplicates
-
I want to request a feature or enhancement and not ask a question
The problem
Currently, DNS responses created using $dnsrewrite rules in AdGuardHome always use the blocked_response_ttl value defined in the configuration, regardless of the type of response being returned.
Proposed solution
It would be useful if AdGuardHome supported a TTL modifier in DNS filtering rules, allowing users to set a custom TTL (Time To Live) for responses created using $dnsrewrite=. For example, a rule like ||example.com^$dnsrewrite=NOERROR,ttl=3600;A;192.168.1.100 would return a record with a 1-hour TTL. This would give users more control over DNS caching behavior, especially in cases where shorter or longer TTLs are desired for custom or overridden records.
Alternatives considered and additional information
No response