File tree 7 files changed +19
-16
lines changed
python/knot_resolver/datamodel
7 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ Incompatible changes
22
22
- /network/tls/auto-discovery
23
23
- /webmgmt
24
24
- /workers-max
25
- - Renamed options in the declarative configuration model (YAML).
25
+ - Renamed/moved options in the declarative configuration model (YAML).
26
26
- /network/tls/files-watchdog -> /network/tls/watchdog
27
27
- /dnssec/keep-removed -> /dnssec/trust-anchors-keep-removed
28
28
- /dnssec/trust-anchor-sentinel -> /dnssec/sentinel
29
29
- /dnssec/trust-anchor-signal-query -> /dnssec/signal-query
30
+ - /logging/dnssec-bogus -> /dnssec/logging-bogus
30
31
31
32
32
33
Knot Resolver 6.0.11 (2025-02-26)
Original file line number Diff line number Diff line change 1229
1229
"description" : " Enable/disable DNSSEC." ,
1230
1230
"default" : true
1231
1231
},
1232
+ "logging-bogus" : {
1233
+ "type" : " boolean" ,
1234
+ "description" : " Enable logging for each DNSSEC validation failure if '/logging/level' is set to at least 'notice'." ,
1235
+ "default" : false
1236
+ },
1232
1237
"sentinel" : {
1233
1238
"type" : " boolean" ,
1234
1239
"description" : " Allows users of DNSSEC validating resolver to detect which root keys are configured in resolver's chain of trust. (RFC 8509)" ,
1294
1299
},
1295
1300
"default" : {
1296
1301
"enabled" : true ,
1302
+ "logging_bogus" : false ,
1297
1303
"sentinel" : true ,
1298
1304
"signal_query" : true ,
1299
1305
"trust_anchors_keep_removed" : 0 ,
1442
1448
"description" : " List of groups for which 'debug' logging level is set." ,
1443
1449
"default" : null
1444
1450
},
1445
- "dnssec-bogus" : {
1446
- "type" : " boolean" ,
1447
- "description" : " Logging a message for each DNSSEC validation failure." ,
1448
- "default" : false
1449
- },
1450
1451
"dnstap" : {
1451
1452
"anyOf" : [
1452
1453
{
1489
1490
"level" : " notice" ,
1490
1491
"target" : " stdout" ,
1491
1492
"groups" : null ,
1492
- "dnssec_bogus" : false ,
1493
1493
"dnstap" : false
1494
1494
}
1495
1495
},
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ Add following line to your configuration file to enable it:
13
13
14
14
.. code-block :: yaml
15
15
16
- logging :
17
- dnssec -bogus : true
16
+ dnssec :
17
+ logging -bogus : true
18
18
19
19
Example of error message logged:
20
20
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class DnssecSchema(ConfigSchema):
24
24
25
25
---
26
26
enabled: Enable/disable DNSSEC.
27
+ logging_bogus: Enable logging for each DNSSEC validation failure if '/logging/level' is set to at least 'notice'.
27
28
sentinel: Allows users of DNSSEC validating resolver to detect which root keys are configured in resolver's chain of trust. (RFC 8509)
28
29
signal_query: Signaling Trust Anchor Knowledge in DNSSEC Using Key Tag Query, according to (RFC 8145#section-5).
29
30
trust_anchors_keep_removed: How many removed keys should be held in history (and key file) before being purged.
@@ -34,6 +35,7 @@ class DnssecSchema(ConfigSchema):
34
35
"""
35
36
36
37
enabled : bool = True
38
+ logging_bogus : bool = False
37
39
sentinel : bool = True
38
40
signal_query : bool = True
39
41
trust_anchors_keep_removed : IntNonNegative = IntNonNegative (0 )
Original file line number Diff line number Diff line change @@ -89,22 +89,19 @@ class Raw(ConfigSchema):
89
89
level: Global logging level.
90
90
target: Global logging stream target. "from-env" uses $KRES_LOGGING_TARGET and defaults to "stdout".
91
91
groups: List of groups for which 'debug' logging level is set.
92
- dnssec_bogus: Logging a message for each DNSSEC validation failure.
93
92
dnstap: Logging DNS requests and responses to a unix socket.
94
93
"""
95
94
96
95
level : LogLevelEnum = "notice"
97
96
target : Union [LogTargetEnum , Literal ["from-env" ]] = "from-env"
98
97
groups : Optional [List [LogGroupsEnum ]] = None
99
- dnssec_bogus : bool = False
100
98
dnstap : Union [Literal [False ], DnstapSchema ] = False
101
99
102
100
_LAYER = Raw
103
101
104
102
level : LogLevelEnum
105
103
target : LogTargetEnum
106
104
groups : Optional [List [LogGroupsEnum ]]
107
- dnssec_bogus : bool
108
105
dnstap : Union [Literal [False ], DnstapSchema ]
109
106
110
107
def _target (self , raw : Raw ) -> LogTargetEnum :
Original file line number Diff line number Diff line change 2
2
3
3
{% if cfg .dnssec .enabled %}
4
4
5
+ -- dnssec.logging-bogus
6
+ {% if cfg .dnssec .logging_bogus %}
7
+ modules.load('bogus_log')
8
+ {% else %}
9
+ -- modules.unload('bogus_log')
10
+ {% endif %}
11
+
5
12
-- dnssec.sentinel
6
13
{% if cfg .dnssec .sentinel %}
7
14
modules.load('ta_sentinel')
Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ log_groups({
19
19
})
20
20
{% endif %}
21
21
22
- {% if cfg .logging .dnssec_bogus %}
23
- modules.load('bogus_log')
24
- {% endif %}
25
-
26
22
{% if cfg .logging .dnstap -%}
27
23
-- logging.dnstap
28
24
modules.load('dnstap')
You can’t perform that action at this time.
0 commit comments