Vladimír Čunát via knot-resolver-users <knot-resolver-users(a)lists.nic.cz> wrote:
On 31/12/2025 13.37, Michael Grimm via
knot-resolver-users wrote:
> Does that mean, LUA configuration is still being
supported?
> Or do I need to migrate to YAML?
Generally you shouldn't use Lua unless you know
what you're doing. And even in that case it's expected that you use YAML for 99%
of your config and only add extra tweaks in Lua (via the lua: section in YAML mentioned in
another message in this thread).
Ok, understood
> FYI: This is FreeBSD and kresctl tool isn't
available here.
OK, that's a complication. In 6.0.17 we added
FreeBSD support to code added in 6.x, and now we're in contact with the maintainer of
the [port], but the last version I saw didn't seem to package all parts needed for
YAML (e.g. executables called knot-resolver and kresctl).
[port]:
https://www.freshports.org/dns/knot-resolver
I will wait until Leo will have dealt with that.
And that might be the reason why I do not succeed in using this simple YAML configuration:
network:
listen:
- interface: &interfaces
- 10.0.1.100
local-data:
addresses-files:
- /usr/local/etc/knot-resolver/LOCALZONES/domain1.lan
- /usr/local/etc/knot-resolver/LOCALZONES/domain2.lan
Error:
kresd[68801]: [system] error while loading config:
/usr/local/etc/knot-resolver/kresd.yaml:2: function arguments expected near ':'
(workdir '/var/run/kresd')
I will wait for the next FreeBSD port, though. No big deal.
Thanks and a Happy New Year,
Michael