-- 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
-- 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
-- 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'
-- 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
-- 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
-- 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
}
-- 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