From 2e6ac0d51514309fd23f8864d9c5dc121f8934a1 Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Sun, 16 Dec 2018 11:11:48 +0100 Subject: etc/config.*: tweak the config examples The main impulse was to have 'hints > iterate', as people usually expect hints to take precendence before cache. --- etc/config.cluster | 6 +----- etc/config.docker | 9 ++++----- etc/config.isp | 5 ++--- etc/config.personal | 3 +-- etc/config.splitview | 3 +-- 5 files changed, 9 insertions(+), 17 deletions(-) (limited to 'etc') diff --git a/etc/config.cluster b/etc/config.cluster index 58483792..86475873 100644 --- a/etc/config.cluster +++ b/etc/config.cluster @@ -20,8 +20,7 @@ cache.size = 100 * GB -- Load Useful modules modules = { - 'policy', -- Block queries to local zones/bad sites - 'hints', -- Load /etc/hosts and allow custom root hints + 'hints > iterate', -- Load /etc/hosts and allow custom root hints 'stats', -- Track internal statistics graphite = { -- Send statistics to local InfluxDB -- `worker.id` allows us to keep per-fork statistics @@ -29,7 +28,6 @@ modules = { -- Address of the Graphite/InfluxDB server host = '192.168.1.2', }, - 'redis', -- Allow to use Redis as a cache backend } -- Use local root server copy for performance reasons @@ -40,5 +38,3 @@ hints.root({ -- Apply RPZ for all clients, default rule is DENY policy.add(policy.rpz(policy.DENY, 'blacklist.rpz')) --- Optional: use Redis/Memcached as a cache backend which may be distributed between nodes --- cache.storage = 'redis://127.0.0.1:6398' diff --git a/etc/config.docker b/etc/config.docker index 0eb33b22..05016726 100644 --- a/etc/config.docker +++ b/etc/config.docker @@ -9,13 +9,12 @@ trust_anchors.file = '/etc/knot-resolver/root.keys' -- Load Useful modules modules = { - 'policy', -- Block queries to local zones/bad sites 'stats', -- Track internal statistics -- Load HTTP module with defaults - http = { - host = '0.0.0.0', - port = 8053, - } + http = { + host = '0.0.0.0', + port = 8053, + }, } -- Smaller cache size diff --git a/etc/config.isp b/etc/config.isp index c5ba8300..27dc76e3 100644 --- a/etc/config.isp +++ b/etc/config.isp @@ -17,16 +17,15 @@ cache.size = 4 * GB -- Load Useful modules modules = { - 'policy', -- Block queries to local zones/bad sites 'view', -- Views for certain clients - 'hints', -- Load /etc/hosts and allow custom root hints + 'hints > iterate', -- Load /etc/hosts and allow custom root hints 'stats', -- Track internal statistics graphite = { -- Send statistics to local InfluxDB -- `worker.id` allows us to keep per-fork statistics prefix = hostname()..worker.id, -- Address of the Graphite/InfluxDB server host = '192.168.1.2', - } + }, } -- Block all `site.nl` for `10.0.0.0/24` subnet diff --git a/etc/config.personal b/etc/config.personal index 490798e2..74bdd0ee 100644 --- a/etc/config.personal +++ b/etc/config.personal @@ -14,8 +14,7 @@ trust_anchors.file = 'root.keys' -- Load Useful modules modules = { - 'policy', -- Block queries to local zones/bad sites - 'hints', -- Load /etc/hosts and allow custom root hints + 'hints > iterate', -- Load /etc/hosts and allow custom root hints 'stats', -- Track internal statistics 'predict', -- Prefetch expiring/frequent records } diff --git a/etc/config.splitview b/etc/config.splitview index 1706a498..fbd01402 100644 --- a/etc/config.splitview +++ b/etc/config.splitview @@ -12,8 +12,7 @@ trust_anchors.file = 'root.keys' -- Load Useful modules modules = { - 'policy', -- Block queries to local zones/bad sites - 'hints', -- Load /etc/hosts and allow custom root hints + 'hints > iterate', -- Load /etc/hosts and allow custom root hints 'stats', -- Track internal statistics graphite = { -- Send statistics to local InfluxDB -- `worker.id` allows us to keep per-fork statistics -- cgit v1.2.3