File tree 7 files changed +18
-17
lines changed
python/knot_resolver/datamodel
7 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ Incompatible changes
21
21
- /network/tls/auto-discovery
22
22
- /webmgmt
23
23
- /workers-max
24
- - Renamed options in the declarative configuration model (YAML).
24
+ - Renamed/moved options in the declarative configuration model (YAML).
25
25
- /network/tls/files-watchdog -> /network/tls/watchdog
26
+ - /logging/dnssec-bogus -> /dnssec/logging-bogus
26
27
27
28
28
29
Knot Resolver 6.0.11 (2025-02-26)
Original file line number Diff line number Diff line change 1295
1295
},
1296
1296
"description" : " List of zone-files where trust-anchors are stored." ,
1297
1297
"default" : null
1298
+ },
1299
+ "logging-bogus" : {
1300
+ "type" : " boolean" ,
1301
+ "description" : " Enable logging for each DNSSEC validation failure if '/logging/level' is set to at least 'notice'." ,
1302
+ "default" : false
1298
1303
}
1299
1304
}
1300
1305
}
1442
1447
"description" : " List of groups for which 'debug' logging level is set." ,
1443
1448
"default" : null
1444
1449
},
1445
- "dnssec-bogus" : {
1446
- "type" : " boolean" ,
1447
- "description" : " Logging a message for each DNSSEC validation failure." ,
1448
- "default" : false
1449
- },
1450
1450
"dnstap" : {
1451
1451
"anyOf" : [
1452
1452
{
1489
1489
"level" : " notice" ,
1490
1490
"target" : " stdout" ,
1491
1491
"groups" : null ,
1492
- "dnssec_bogus" : false ,
1493
1492
"dnstap" : false
1494
1493
}
1495
1494
},
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 @@ -30,6 +30,7 @@ class DnssecSchema(ConfigSchema):
30
30
trust_anchors: List of trust-anchors in DS/DNSKEY records format.
31
31
negative_trust_anchors: List of domain names representing negative trust-anchors. (RFC 7646)
32
32
trust_anchors_files: List of zone-files where trust-anchors are stored.
33
+ logging_bogus: Enable logging for each DNSSEC validation failure if '/logging/level' is set to at least 'notice'.
33
34
"""
34
35
35
36
trust_anchor_sentinel : bool = True
@@ -39,3 +40,4 @@ class DnssecSchema(ConfigSchema):
39
40
trust_anchors : Optional [List [EscapedStr ]] = None
40
41
negative_trust_anchors : Optional [List [DomainName ]] = None
41
42
trust_anchors_files : Optional [List [TrustAnchorFileSchema ]] = None
43
+ logging_bogus : bool = False
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 @@ -47,4 +47,10 @@ trust_anchors.set_insecure({
47
47
{% for taf in cfg .dnssec .trust_anchors_files %}
48
48
trust_anchors.add_file('{{ taf.file }}', readonly = {{ boolean(taf.read_only) }})
49
49
{% endfor %}
50
- {% endif %}
50
+ {% endif %}
51
+
52
+ {% if cfg .dnssec .logging_bogus %}
53
+ modules.load('bogus_log')
54
+ {% else %}
55
+ modules.unload('bogus_log')
56
+ {% endif %}
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