aboutsummaryrefslogtreecommitdiffstats
path: root/community/knot-resolver/config
blob: 1731f0c59110d6f5a44718020ff37149975b9693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- vim:syntax=lua:
--
-- Config file example useable for personal resolver.
-- The goal is to have a validating resolver with tiny memory footprint,
-- while actively tracking and refreshing frequent records to lower user latency.
-- Refer to manual: https://knot-resolver.readthedocs.io/en/latest/daemon.html#configuration

-- Listen on localhost (default)
net = { '127.0.0.1', '::1' }

-- Drop root privileges
user('kresd', 'kresd')

-- Load Useful modules
modules = {
	'policy',   -- Block queries to local zones/bad sites
	'hints',    -- Load /etc/hosts and allow custom root hints
	'stats',    -- Track internal statistics
	'predict',  -- Prefetch expiring/frequent records
}

-- Smaller cache size
cache.size = 10 * MB