No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian Salcedo 3910dd3ab8 we have blocka 2 months ago
.gitignore we have blocka 2 months ago
LICENSE Add license 11 months ago
README.md we have blocka 2 months ago
blocka.go we have blocka 2 months ago
blocka_test.go we have blocka 2 months ago
metrics.go we have blocka 2 months ago
setup.go we have blocka 2 months ago
setup_test.go example -> blocka 2 months ago

README.md

blocka

Name

blocka - Blacklist everything by default.

Description

The blocka plugin checks a Redis store on every query received. If no key is found matching the query name, the plugin returns NXDOMAIN to the client and publishes the name to a Redis PubSub channel.

Metrics

If monitoring is enabled (via the prometheus directive) the following metric is exported:

  • coredns_blocka_request_count_total{server} - query count to the blocka plugin.
  • coredns_blocka_blocked_count_total{server} - number of queries blocked by blocka plugin.

The server label indicated which server handled the request, see the metrics plugin for details.

Configuration

Add blocka to Corefile, with default options.

. {
  blocka
  ...
}

Example

In this configuration, run every query through blocka plugin, then DNS over TLS with Quad9, and cache.

. {
  blocka {
    address   localhost:6379
    prefix    blocka_
    password  ""
    DB        0
  }
  forward . tls://9.9.9.9 {
    tls_servername dns.quad9.net
  }
  cache 30
}

Also See

See the manual.