Previously, all those actions caused resolver to return SERVFAIL,
because the lua code failed to evaluate.
Notably, deny action now properly returns NXDOMAIN instead of SERVFAIL.
The drop action still returns SERVFAIL.
-- Actions
local actions = {
- pass = 1, deny = 2, drop = 3, tc = 4, truncate = 4,
+ pass = function() return policy.PASS end,
+ deny = function () return policy.DENY end,
+ drop = function() return policy.DROP end,
+ tc = function() return policy.TC end,
+ truncate = function() return policy.TC end,
forward = function (g)
local addrs = {}
local tok = g()