Hi, you are also passing the domain names incorrectly to the
'policy.add(...)' function. It actually takes a filter rule, which then
takes an action. If you want to match the domains along with all of
their subdomains, use 'policy.suffix(...)'. If you only want to match
the domains exactly, use 'policy.domains(...)'.
The proper usage would be e.g. like so:
policy.add(policy.suffix(policy.FORWARD(...),
policy.todnames({'domain2.tld', ...})))
For more info, see the docs:
https://knot-resolver.readthedocs.io/en/stable/modules-policy.html
Oto Šťáva
CZ.NIC
On 12/12/23 21:48, martin.skalicky(a)outlook.cz wrote:
Thank you, haven't noticed the double curly
braces.
However fixed it and tried so, however still this error appears:
Dec 12 21:45:50 linelab kresd[49847]: [system] error:
/usr/lib/knot-resolver/kres_modules/policy.lua:863: attempt to call field 'cb' (a
table value)
--