diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-12-16 11:11:48 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-12-17 10:35:58 +0100 |
commit | 2e6ac0d51514309fd23f8864d9c5dc121f8934a1 (patch) | |
tree | c44bd73a00dd7d96435aba2d136c5793fc88bb26 /etc | |
parent | Merge !727: lib/resolve: drop a piece cycle-avoidance code (diff) | |
download | knot-resolver-2e6ac0d51514309fd23f8864d9c5dc121f8934a1.tar.xz knot-resolver-2e6ac0d51514309fd23f8864d9c5dc121f8934a1.zip |
etc/config.*: tweak the config examples
The main impulse was to have 'hints > iterate', as people usually expect
hints to take precendence before cache.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/config.cluster | 6 | ||||
-rw-r--r-- | etc/config.docker | 9 | ||||
-rw-r--r-- | etc/config.isp | 5 | ||||
-rw-r--r-- | etc/config.personal | 3 | ||||
-rw-r--r-- | etc/config.splitview | 3 |
5 files changed, 9 insertions, 17 deletions
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 |