config.personal 733 Bytes
Newer Older
1 2 3
-- 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.
4
-- Refer to manual: https://knot-resolver.readthedocs.io/en/latest/daemon.html#configuration
5 6 7 8 9

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

-- Drop root privileges
10
user('knot-resolver', 'knot-resolver')
11 12 13 14 15 16

-- Auto-maintain root TA
trust_anchors.file = 'root.keys'

-- Load Useful modules
modules = {
17
	'hints > iterate', -- Load /etc/hosts and allow custom root hints
18 19 20 21 22 23
	'stats',    -- Track internal statistics
	'predict',  -- Prefetch expiring/frequent records
}

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