diff --git a/CHANGELOG.md b/CHANGELOG.md index e958d00d..4aa471c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,13 @@ See also the [v0.107.39 GitHub milestone][ms-v0.107.39]. NOTE: Add new changes BELOW THIS COMMENT. --> +### Added + +- Ability to specify for how long clients should cache a filtered response, + using the *Blocked response TTL* field on the *DNS settings* page ([#4569]). + +[#4569]: https://github.com/AdguardTeam/AdGuardHome/issues/4569 + diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index d7ea54a2..7ff6e612 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -283,6 +283,9 @@ "custom_ip": "Custom IP", "blocking_ipv4": "Blocking IPv4", "blocking_ipv6": "Blocking IPv6", + "blocked_response_ttl": "Blocked response TTL", + "blocked_response_ttl_desc": "Specifies for how many seconds the clients should cache a filtered response", + "form_enter_blocked_response_ttl": "Enter blocked response TTL (seconds)", "dnscrypt": "DNSCrypt", "dns_over_https": "DNS-over-HTTPS", "dns_over_tls": "DNS-over-TLS", diff --git a/client/src/components/Settings/Dns/Config/Form.js b/client/src/components/Settings/Dns/Config/Form.js index 52d94741..18dc56fc 100644 --- a/client/src/components/Settings/Dns/Config/Form.js +++ b/client/src/components/Settings/Dns/Config/Form.js @@ -68,10 +68,10 @@ const Form = ({ return
-
+
@@ -160,24 +160,46 @@ const Form = ({ name, validateIp, }) =>
-
- -
- {description} +
+ +
+ {description} +
+
- -
-
)} +
)} )} +
+
+ +
+ blocked_response_ttl_desc +
+ +
+