How to delete A records
Hello. I'm trying to configure knot-resolver to act as DNS64 but I need to drop existing A records. I have this lua script:
modules = { 'dns64' }
dns64.config({
exclude_subnets = { '::/0' },
})
function match_query_type(action, target_qtype)
return function (state, query)
if query.stype == target_qtype then
return action
else
return nil
end
end
end
policy.add(match_query_type(policy.DROP, kres.type.A))
But in this case, knot-resolver returns SERVFAIL
.
If I use policy.DENY
knot-resolver returns NXDOMAIN
.
How to return NOERROR
with empty response?