From 2188e20d419e9a90c808e23c98cf12b281d3341a Mon Sep 17 00:00:00 2001 From: Maartje Eyskens Date: Sat, 20 Feb 2016 17:19:14 +0100 Subject: [PATCH 1/2] Allow shorter TTL --- convenient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convenient.js b/convenient.js index 837629a..ed26f2b 100644 --- a/convenient.js +++ b/convenient.js @@ -4,7 +4,7 @@ require('defaultable')(module, { 'convenient' : true - , 'ttl' : 3600 + , 'ttl' : 10 }, function(module, exports, DEFS, require) { function noop() {} From bcc16d954849a3b1148f966daf68e92952fea51f Mon Sep 17 00:00:00 2001 From: Maartje Eyskens Date: Thu, 5 May 2016 10:57:19 +0200 Subject: [PATCH 2/2] Allow lower TTL than SOA --- convenient.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/convenient.js b/convenient.js index ed26f2b..81c6900 100644 --- a/convenient.js +++ b/convenient.js @@ -84,12 +84,6 @@ function final_response(res, value) { function well_formed_record(record) { record.class = record.class || 'IN' - - var zone_minimum = DEFS.ttl - if(soa_record) - zone_minimum = soa_record.data.ttl - - record.ttl = Math.max(record.ttl || 0, zone_minimum) } }