Commit 2e6ac0d5 authored by Vladimír Čunát's avatar Vladimír Čunát

etc/config.*: tweak the config examples

The main impulse was to have 'hints > iterate', as people usually expect
hints to take precendence before cache.
parent 3a522fdf
......@@ -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'
......@@ -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
......
......@@ -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
......
......@@ -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
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment