From d30b17c4db1392c19b11c3af7a47051f8dd6568a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 3 Feb 2026 03:58:01 +0700 Subject: all: add option to set minimum TTL In the rescached.cfg, we add option where user can force the minimum TTL in the DNS answer. This option is not a standard and not recommended used in public facing network. It should be used only for personal and private network. --- environment.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'environment.go') diff --git a/environment.go b/environment.go index 7df8bcd..af2e364 100644 --- a/environment.go +++ b/environment.go @@ -82,6 +82,13 @@ type Environment struct { dns.ServerOptions + // MinimumTTL force the TTL in the answer to this value. + // The value is in seconds, default to 0 (disabled). + // Note that this option is not standard and obviously not recommended + // for resolver facing public networks. + // It should be used only in personal or private network. + MinimumTTL uint32 `ini:"rescached::minimum_ttl"` + Debug int `ini:"rescached::debug"` } -- cgit v1.3