I have made the following changes here:
--- /tmp/kresd.orig 2016-11-22 22:00:15.772770426 -0500
+++ /etc/init.d/kresd 2016-11-22 21:59:40.512689223 -0500
@@ -38,6 +38,8 @@
echo " }" >> $CONFIGFILE
fi
echo "}" >> $CONFIGFILE
+ # load local config file
+ cat /etc/kresd/kres.config.local >> $CONFIGFILE
}
set_param_func() {
I have also added this to my config so that the fix survives the upgrade that will supposedly make this work without a patch:
--- /tmp/resolver.orig 2016-11-22 22:01:15.664544379 -0500
+++ /etc/config/resolver 2016-11-22 21:49:54.029138608 -0500
@@ -19,6 +19,7 @@
option log_stderr '0'
option log_stdout '0'
option forks '1'
+ option include_config '/etc/kresd/kres.config.local'
config resolver 'unbound'
option outgoing_range '60'
… hopefully I have parsed this function correctly.
ideally, the actual functionality would be present in UCI (and LUCI) so that I wouldn’t have to mess around with this. What I needed was something to forward specific domains to another host, like this:
policy:add(policy.suffix(policy.FORWARD('192.168.0.1'), {todname('example.com')}))
I had to dig in the knot documentation to figure that one out…