From: George Thessalonikefs Date: Mon, 6 Apr 2020 10:32:18 +0000 (+0200) Subject: - More documentation for redis-expire-records option. X-Git-Tag: release-1.11.0~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33a2613a490bc53a99001976af00566afc03eb6f;p=thirdparty%2Funbound.git - More documentation for redis-expire-records option. --- diff --git a/doc/Changelog b/doc/Changelog index 446bc6f5f..3e5a93ffa 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +6 April 2020: George + - More documentation for redis-expire-records option. + 1 April 2020: George - Merge PR #206: Redis TTL, by Talkabout. diff --git a/doc/example.conf.in b/doc/example.conf.in index 091948e2d..47c16ca2e 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -1013,10 +1013,12 @@ remote-control: # redis-server-port: 6379 # # timeout (in ms) for communication with the redis server # redis-timeout: 100 +# # set timeout on redis records based on DNS response TTL +# redis-expire-records: no # IPSet # Add specify domain into set via ipset. -# Note: To enable ipset needs run unbound as root user. +# Note: To enable ipset unbound needs to run as root user. # ipset: # # set name for ip v4 addresses # name-v4: "list-v4" diff --git a/doc/unbound.conf.5.in b/doc/unbound.conf.5.in index 19fb2e5eb..598f3e8b0 100644 --- a/doc/unbound.conf.5.in +++ b/doc/unbound.conf.5.in @@ -2076,6 +2076,11 @@ even if some data have expired in terms of DNS TTL or the Redis server has cached too much data; if necessary the Redis server must be configured to limit the cache size, preferably with some kind of least-recently-used eviction policy. +Additionaly, the \fBredis\-expire\-records\fR option can be used in order to +set the relative DNS TTL of the message as timeout to the Redis records; keep +in mind that some additional memory is used per key and that the expire +information is stored as absolute Unix timestamps in Redis (computer time must +be stable). This backend uses synchronous communication with the Redis server based on the assumption that the communication is stable and sufficiently fast.