]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
fallback: module prototype docs-fallback-bwj41e/deployments/7334
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 28 Jul 2025 07:03:55 +0000 (09:03 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 4 Aug 2025 08:09:47 +0000 (10:09 +0200)
commitac3ae623beda60e9c241fcb56bcd83da37bfc6d2
tree665b32f143a9ce72e673a7c4c4a8510441c5d787
parent3f38fe6f63fbae7d63aab0ea4e8c2db15714a6b2
fallback: module prototype

The module switches individual queries to a forwarding config
when failing to resolve the normal way (non-forwarding typically).
Internally the mechanism is close to the serve_stale module.

For now it has Lua config only, e.g.:

modules = { 'fallback' }
fallback.config({
targets = {
{'193.17.47.1', tls = false},
{'2001:148f:fffe::1', tls = false},
},
options = {
},
})

TODO: right now it's not yet possible to specify a list of source
addresses for which this mechanism won't be applied.
modules/fallback/fallback.lua