a ready KSK present when the zone is signed; the signal parameters are
`zone name`, `KSK keytag`, and `KSK KASP id`.
- ``dnssec-invalid`` – The signal ``zone_dnssec_invalid`` is emitted when DNSSEC
- validation fails; the signal parameters are `zone name`, and `remaining seconds`
- until an RRSIG expires.
+ validation fails, or when ZONEMD verification fails; the signal parameters
+ are `zone name`, and `remaining seconds` until an RRSIG expires.
.. NOTE::
This function requires systemd version at least 221 or libdbus.
This mode is not compatible with :ref:`zone_dnssec-signing`.
+.. TIP::
+ If :ref:`server_dbus-event` is set to ``dnssec-invalid``, a corresponding
+ signal is emitted when the validation fails.
+
*Default:* not set
.. _zone_dnssec-policy:
.. NOTE::
Zone digest calculation may take much time and CPU on large zones.
+.. TIP::
+ If :ref:`server_dbus-event` is set to ``dnssec-invalid``, a corresponding
+ signal is emitted when the verification fails.
+
*Default:* ``off``
.. _zone_zonemd-generate:
if (ret != KNOT_EOK) {
log_zone_error(update->zone->name, "ZONEMD, verification failed (%s)",
knot_strerror(ret));
+ if (conf->cache.srv_dbus_event & DBUS_EVENT_ZONE_INVALID) {
+ dbus_emit_zone_invalid(update->zone->name, 0);
+ }
} else {
log_zone_info(update->zone->name, "ZONEMD, verification successful");
}