Skip to content

Loads of logs: "validation failure: key for validation <domain>. is marked as invalid because of a previous" for non-DNSSEC signed zone #1130

@pettai

Description

@pettai

Describe the bug
Loads of log output about validation failures for a non-DNSSEC signed zone, probably due to that RPZ blocks.

Aug 27 06:50:52 resolver unbound: [1387:7] info: validation failure <jsrcp.com. MX IN>: key for validation jsrcp.com. is marked as invalid because of a previous
Aug 27 06:50:52 resolver unbound: [1387:2] info: validation failure <jsrcp.com. A IN>: key for validation jsrcp.com. is marked as invalid because of a previous
Aug 27 06:50:52 resolver unbound: [1387:a] info: rpz: applied [badrep.host] jsrcp.com. rpz-nxdomain  jsrcp.com. DNSKEY IN
Aug 27 06:50:52 resolver unbound: [1387:a] info: rpz: applied [badrep.host] jsrcp.com. rpz-nxdomain  jsrcp.com. NS IN
Aug 27 06:50:52 resolver unbound: [1387:f] info: validation failure <jsrcp.com. A IN>: key for validation jsrcp.com. is marked as invalid because of a previous

To reproduce
Steps to reproduce the behavior:

  1. Add RPZ zone that blocks the domain
  2. Try to resolve the domain

Expected behavior

I suggest a few different things:

  1. Stop validation attempts if RPZ is at work (if it's blocked does Unbound need to do additional work?)
  2. Prune the log output regarding the validation failures if RPZ kicks in and change stuff
  3. Fix the log message so it's more clear what it refers to
    validation failure <jsrcp.com. A IN>: key for validation jsrcp.com. is marked as invalid because of a previous seems incomplete, can it be more clear what it refers to?

System:

  • Unbound version: 1.21.0
  • OS: Ubuntu 20.04
  • unbound -V output:
Version 1.21.0

Configure line: --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --disable-rpath --with-pidfile=/run/unbound.pid --with-rootkey-file=/var/lib/unbound/root.key --with-libevent --with-libhiredis --with-libnghttp2 --with-pythonmodule --enable-cachedb --enable-subnet --enable-dnstap --enable-systemd --with-chroot-dir= --with-dnstap-socket-path=/run/dnstap.sock --libdir=/usr/lib
Linked libs: libevent 2.1.11-stable (it uses epoll), OpenSSL 1.1.1f  31 Mar 2020
Linked modules: dns64 python cachedb subnetcache respip validator iterator

Additional information
None ATM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions