]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
hints: merge RRs instead of replacing them
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 4 Aug 2023 17:22:23 +0000 (19:22 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 17 Aug 2023 13:58:24 +0000 (15:58 +0200)
commit321b39bdebbead9dfd339b40197d4c7e0bd27d61
treed35228daf68553ed3f4535ede5a5e8661a5a19cf
parent83bbf49c787c19c0e45293bc219e30f0eff34e97
hints: merge RRs instead of replacing them

We had this behavior in 5.x.
Lua level: affects hints.set() and hints['name'] and hints.add_hosts()
YAML level: /local-data/addresses and /local-data/addresses-files

I considered various approaches when writing this.  This one won because
in /etc/hosts like files a name can be repeated with arbitrary lines
in between, and users can reasonably expect it to collect all addresses.
lib/rules/api.c
lib/rules/api.h
modules/hints/hints.c