Files
coredns/middleware/chaos
Miek Gieben 219bfd0493 middleware/metrics: cleanup (#355)
* middleware/metrics: add more metrics

middleware/cache:
Add metrics for number of elements in the cache. Also export the total
size. Update README to detail the new metrics.

middleware/metrics

Move metrics into subpackage called "vars". This breaks the import
cycle and is cleaner. This allows vars.Report to be used in the
the dnsserver to log refused queries.

middleware/metrics: tests

Add tests to the metrics framework. The metrics/test subpackage allows
scraping of the local server. Do a few test scrape of the metrics that
are defined in the metrics middleware.

This also allows metrics integration tests to check if the caching and
dnssec middleware export their metrics correctly.

* update README

* typos

* fix tests
2016-10-26 10:01:52 +01:00
..
2016-09-17 17:09:05 +01:00
2016-10-26 10:01:52 +01:00
2016-09-19 11:26:00 +01:00

chaos

The chaos middleware allows CoreDNS to respond to TXT queries in the CH class. This is useful for retrieving version or author information from the server.

Syntax

chaos [VERSION] [AUTHORS...]
  • VERSION the version to return. Defaults to CoreDNS-, if not set.
  • AUTHORS what authors to return. No default.

Note that you have to make sure that this middleware will get actual queries for the following zones: version.bind, version.server, authors.bind, hostname.bind and id.server.

Examples

chaos CoreDNS-001 "Miek Gieben" miek@miek.nl