Aleš Mrázek via knot-resolver-users <knot-resolver-users(a)lists.nic.cz> wrote:
Is there a document available that describes which configuration file formats are accepted
by Knot Resolver 6.x.x?
On
https://www.knot-resolver.cz/documentation/v6.0.17/upgrading-to-6.html#upgr… I
find:
| new declarative configuration in YAML that can be validated before running
Background of my question is that my current LUA configuration works right away besides
[1].
Does that mean, LUA configuration is still being supported?
Or do I need to migrate to YALM?
FYI: This is FreeBSD and kresctl tool isn't available here.
Here my issue [1]:
Serving local hints.add_hosts as done in 5.7.6 stopped working (LUA config):
--
-- local domains
--
hints.add_hosts('/usr/local/etc/knot-resolver/LOCALZONES/domain1.lan')
hints.add_hosts('/usr/local/etc/knot-resolver/LOCALZONES/domain2.lan')
policy.add(
policy.suffix(
policy.PASS, {
todname('1.0.10.in-addr.arpa'),
todname('2.0.10.in-addr.arpa'),
}
)
)
I see in the logs that both files have been loaded, but an example answer is:
; <<>> DiG 9.20.17 <<>> @10.0.1.100
www.domain1.lan
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33129
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;www.domain1.lan. IN A
;; AUTHORITY SECTION:
. 86400 IN SOA
a.root-servers.net.
nstld.verisign-grs.com. 2025123100 1800 900 604800
86400
;; Query time: 26 msec
;; SERVER: 10.0.1.100#53(10.0.1.100) (UDP)
;; WHEN: Wed Dec 31 12:29:03 CET 2025
;; MSG SIZE rcvd: 122
Do I need to YALM configuration to get that working again?
Thanks in advance and regards,
Michael