]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- More documentation for redis-expire-records option.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 6 Apr 2020 10:32:18 +0000 (12:32 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 6 Apr 2020 11:46:45 +0000 (13:46 +0200)
doc/Changelog
doc/example.conf.in
doc/unbound.conf.5.in

index 446bc6f5f8cb0e0c06dc786eb954c662d98a5263..3e5a93ffa82117c207b13c4d0bfbc6fecc36f5a4 100644 (file)
@@ -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.
 
index 091948e2df9662d4cd134506a4310589a87791a9..47c16ca2eb1e29e39c3218bddcd17cbee8e51d27 100644 (file)
@@ -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"
index 19fb2e5ebc1762c62b139550c206cd1fbd38987c..598f3e8b0f7e2c18c5bbd3f7bfd3f4b1f26f8b5f 100644 (file)
@@ -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.