Adding this to the custom config file:
policy.add(policy.suffix(policy.FORWARD('127.0.0.1@54'), policy.todnames({'lan'})))
doesn’t seem to allow lookups to .lan hostnames, but using the old init_header() fix does:
difference between the broken and working files:
--- /tmp/kresd.config.broken 2016-12-09 09:27:42.108117000 -0500
+++ /tmp/kresd.config.working 2016-12-09 09:23:57.358117000 -0500
@@ -8,6 +8,7 @@
, period = 24*(60/30) -- track last 24 hours
}
}
+policy.add(policy.suffix(policy.FORWARD('127.0.0.1@54'), policy.todnames({'lan'})))
hints.config('/etc/hosts')
net.bufsize(4096)
net.ipv4=true
@@ -19,4 +20,3 @@
--- Included custom configuration file from: ---
--- /etc/kresd/custom.conf
-policy.add(policy.suffix(policy.FORWARD('127.0.0.1@54'), policy.todnames({'lan'})))
The full working file:
--Automatically generated file; DO NOT EDIT
modules = {
'hints'
, 'policy'
, 'stats'
, predict = {
window = 30 -- 30 minutes sampling window
, period = 24*(60/30) -- track last 24 hours
}
}
policy.add(policy.suffix(policy.FORWARD('127.0.0.1@54'), policy.todnames({'lan'})))
hints.config('/etc/hosts')
net.bufsize(4096)
net.ipv4=true
net.ipv6=true
cache.open(20*MB)
cache.clear()
policy:add(policy.all(policy.FORWARD('71.242.0.12')))
policy:add(policy.all(policy.FORWARD('71.250.0.12')))
--- Included custom configuration file from: ---
--- /etc/kresd/custom.conf
I suspect it is because the custom policies get added after the policy.all
statements