-- load HTTP module with defaults (self-signed TLS cert)
modules.load('http')
http.config()
-- Load Useful modules
modules = {
'policy', -- Block queries to local zones/bad sites
'view', -- Handle requests by source IP
'stats', -- Track internal statistics
'hints', -- Add static records to resolver
}
Regards, -- Smil Milan Jeskyňka Kazatel
On 08/10/2019 09.59, Milan Jeskynka Kazatel wrote:
> Unfortunately after upgrade to version 4.2.0 I'm not able to correctly start
> the module even if I follow the migration hints on documentation websites. I
> still receive a startup fail message
>
>
> Oct 04 11:32:09 dns systemd[1]: Starting Knot Resolver daemon...
>
> Oct 04 11:32:54 dns kresd[9540]: error: /usr/lib64/knot-resolver/kres_
> modules/http.lua:35: attempt to call global 'moduledir' (a nil value)
Hi.
This looks very odd - it seems like an old version of the http module.
Could you please check the version of knot-resover-module-http package
and upgrade it if possible?