Hello,
I set config as below, but an error is output at some timing.
Although it is an error message related to policy.lua, reading the document does not know
the cause.
"""
error: /usr/local/lib/kdns_modules/policy.lua:526: attempt to call local 'action'
(a table value)
error: /usr/local/lib/kdns_modules/policy.lua:526: attempt to call local 'action'
(a table value)
error: /usr/local/lib/kdns_modules/policy.lua:526: attempt to call local 'action'
(a table value)
error: /usr/local/lib/kdns_modules/policy.lua:526: attempt to call local 'action'
(a table value)
"""
"""
net.listen(net.eth0, 53, false)
-- Load Useful modules
modules = {
'policy', -- Block queries to local zones/bad sites
'view', -- Views for certain clients
'hints > iterate', -- Hints AFTER iterate
'priming', -- Initializing a DNS Resolver with Priming Queries implemented
according.
'detect_time_skew', -- System time skew detector
'detect_time_jump', -- Detect discontinuous jumps in the system time
'daf',
predict = {
window = 180, -- 180 minutes sampling window
period = 24*(60/15) -- track last 24 hours
},
'bogus_log',
}
modules.list() -- Check module call order
-- stub forward
policy.add(policy.suffix(policy.PASS({'192.168.1.3@10053',
'192.168.1.4@10053'}), {todname('kometch.private')}))
policy.add(policy.suffix(policy.PASS({'192.168.1.3@10053',
'192.168.1.4@10053'}), {todname('168.192.in-addr.arpa') }))
--forward policy
policy.add(policy.all(policy.FORWARD({'1.1.1.1', '1.0.0.1'})))
policy.del(0)
"""
Would you please advise me?
Best regards.