From 28de38768e2c7d763b9aa5b7a4d251d5e56bab0b Mon Sep 17 00:00:00 2001 From: RinSatsuki Date: Sat, 10 Jan 2015 15:22:21 +0000 Subject: Add --min-cache-ttl option. --- CHANGELOG | 7 +++++++ man/dnsmasq.8 | 6 ++++++ src/cache.c | 4 +++- src/config.h | 1 + src/dnsmasq.h | 2 +- src/option.c | 11 +++++++++++ 6 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 0bbb783..23fc6d0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -43,6 +43,13 @@ version 2.73 Add --log-queries=extra option, which makes logs easier to search automatically. + Add --min-cache-ttl option. I've resisted this for a long + time, on the grounds that disbelieving TTLs is never a + good idea, but I've been persuaded that there are + sometimes reasons to do it. (Step forward, GFW). + To avoid misuse, there's a hard limit on the TTL + floor of one hour. Thansk to RinSatsuki for the patch. + version 2.72 Add ra-advrouter mode, for RFC-3775 mobile IPv6 support. diff --git a/man/dnsmasq.8 b/man/dnsmasq.8 index 227d74b..5cfa355 100644 --- a/man/dnsmasq.8 +++ b/man/dnsmasq.8 @@ -81,6 +81,12 @@ the upstream DNS servers. .B --max-cache-ttl=