1
0
Fork 0
knot-resolver/modules/bogus_log
Daniel Baumann fbc604e215
Adding upstream version 5.7.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 13:56:17 +02:00
..
.packaging Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
test.integr Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
bogus_log.c Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
meson.build Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00
README.rst Adding upstream version 5.7.5. 2025-06-21 13:56:17 +02:00

.. SPDX-License-Identifier: GPL-3.0-or-later

.. _mod-bogus_log:

DNSSEC validation failure logging
=================================

This module logs a message for each DNSSEC validation failure (on ``notice`` :func:`level <log_level>`).
It is meant to provide hint to operators which queries should be
investigated using diagnostic tools like DNSViz_.

Add following line to your configuration file to enable it:

.. code-block:: lua

        modules.load('bogus_log')

Example of error message logged by this module:

.. code-block:: none

        [dnssec] validation failure: dnssec-failed.org. DNSKEY

.. _DNSViz: http://dnsviz.net/

List of most frequent queries which fail as DNSSEC bogus can be obtained at run-time:

.. code-block:: lua

      > bogus_log.frequent()
      {
          {
              ['count'] = 1,
              ['name'] = 'dnssec-failed.org.',
              ['type'] = 'DNSKEY',
          },
          {
              ['count'] = 13,
              ['name'] = 'rhybar.cz.',
              ['type'] = 'DNSKEY',
          },
      }

Please note that in future this module might be replaced
with some other way to log this information.