-- Refer to manual: https://knot-resolver.readthedocs.io/en/stable/
print('Knot Resolver ' .. package_version())
+-- Smaller cache size
+cache.size = 10 * MB
+
function interactive_mode()
-- Listen on all interfaces (localhost would not work in Docker)
net.listen('0.0.0.0', 53, { kind = 'dns' })
'http',
}
- -- Smaller cache size
- cache.size = 10 * MB
-
function print_help()
print('\nUsage\n'
.. '=====\n'
modules.unload('ta_signal_query')
modules.unload('ta_update')
+ -- always empty cache so this config works reliably outside Docker
+ cache.clear()
+
-- execute query right after start up and exit when the query is finished
event.after(0, function()
-- ultra verbose log