Skip to content

[knot-resolver 6] RPZ Wildcard support #137

Description

@pschichtel

Hi everyone!

It seems that with the switch to knot-resolver 6 support for wildcard entries in RPZ files got lost.

The section on records says that wildcards are not supported, but the RPZ section does not.

Reverting back to 5.7.6 and a basically equivalent kresd.conf restored wildcard support.

The config on 6.2.0:

workers: 4

network:
  listen:
    - interface: 127.0.0.1@5353

logging:
  level: info

monitoring:
  metrics: always

cache:
  size-max: 200M
  prefill:
    - origin: "."
      url: https://www.internic.net/domain/root.zone
      refresh-interval: 12h
  prefetch:
    expiring: true
    prediction:
      enable: true
      window: 30m
      period: 48

options:
  serve-stale: true

local-data:
  rpz:
    - file: /etc/knot-resolver/local_domains.rpz
      watchdog: true

and this is the config on 5.7.6:

net.listen('127.0.0.1', 5353, { kind = 'dns' })

modules = {
        'hints > iterate',
        'stats',
        'predict',
        'serve_stale < cache',
        'workarounds < iterate',
}

cache.size = 200 * MB
predict.config({
    window = 30,
    period = 24*(60/15)
})

policy.add(policy.rpz(policy.DENY, '/etc/knot-resolver/local_domains.rpz', true))
log_groups({'policy'})

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