After the latest update it looks like my custom kresd script is no longer executed or fails silently because of errors. “hal2100.one” is no longer resolved by my TO. It was resolved yesterday, before I restarted my TO.
I have this in my /etc/kresd/custom.conf:
local function genRR (state, req)
local answer = req.answer
local qry = req:current()
if qry.stype ~= kres.type.A then
return state
end
ffi.C.kr_pkt_make_auth_header(answer)
answer:rcode(kres.rcode.NOERROR)
answer:begin(kres.section.ANSWER)
answer:put(qry.sname, 900, answer:qclass(), kres.type.A, '\192\168\1\108')
return kres.DONE
end
local internal_server = policy.add(policy.suffix(genRR, { todname('hal2100.one.') }
custom.conf is mentioned also in my /etc/config/resolver
I’m trying to put the more important changes (for users) to release notes (in upstream knot-resolver project). In this case – AFAIK it’s very rare to use ffi in configs. I want to avoid putting too much in the notes, as that would make them hard to read and there’s git log for anyone ready to read such long lists.