Skip to content

Commit d34178e

Browse files
committed
Merge !1763: /fallback: apply during reload (force kresd restarts)
2 parents 3e468d1 + dc41332 commit d34178e

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

NEWS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Knot Resolver 6.0.18 (2026-mm-dd)
2+
=================================
3+
4+
Bugfixes
5+
--------
6+
- reload did not apply changes to /fallback (!1763)
7+
8+
19
Knot Resolver 6.0.17 (2025-12-02)
210
=================================
311

python/knot_resolver/datamodel/config_schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class Raw(ConfigSchema):
135135

136136
_LAYER = Raw
137137

138+
#### When ADDING options, please also update config_nodes() in ../manager/manager.py
138139
nsid: Optional[EscapedStr]
139140
hostname: EscapedStr
140141
rundir: WritableDir

python/knot_resolver/datamodel/templates/kresd.lua.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ nsid.name('{{ cfg.nsid }}' .. worker.id)
3131
-- DNSSEC section -----------------------------------
3232
{% include "dnssec.lua.j2" %}
3333

34-
-- FORWARD section ----------------------------------
34+
-- FORWARD and FALLBACK section ----------------------------------
3535
{% include "forward.lua.j2" %}
3636

3737
-- CACHE section ------------------------------------

python/knot_resolver/manager/manager.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,23 @@ def config_nodes(config: KresConfig) -> List[Any]:
119119
return [
120120
config.nsid,
121121
config.hostname,
122+
# config.rundir not allowed to change
122123
config.workers,
124+
# config.management not allowed to change and not affecting workers anyway
123125
config.options,
124126
config.network,
127+
# config.views fully handled by policy-loader
128+
# config.local_data fully handled by policy-loader
125129
config.forward,
130+
config.fallback,
126131
config.cache,
127132
config.dnssec,
128133
config.dns64,
129134
config.logging,
130135
config.monitoring,
131-
config.lua,
132136
config.rate_limiting,
133137
config.defer,
138+
config.lua,
134139
]
135140

136141
# register and immediately call a verifier that validates config with 'canary' kresd process

0 commit comments

Comments
 (0)