coredns/plugin/chaos
Qasim Sarfraz 74b84a1377
update all +build statements (#5271)
* update all +build statements

Signed-off-by: MQasimSarfraz <syed.qasim.sarfraz@gmail.com>

* remove old +build style

Signed-off-by: MQasimSarfraz <syed.qasim.sarfraz@gmail.com>
2022-03-18 07:11:14 -07:00
..
chaos.go plugin/chaos: randomize author list (#2794) 2019-04-23 23:21:28 +08:00
chaos_test.go plugin/chaos: add default list of authors (#2737) 2019-03-31 11:01:11 -07:00
fuzz.go update all +build statements (#5271) 2022-03-18 07:11:14 -07:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
README.md typo fixes (#3169) 2019-08-21 16:08:55 -04:00
setup.go For caddy v1 in our org (#4018) 2020-09-24 18:14:41 +02:00
setup_test.go For caddy v1 in our org (#4018) 2020-09-24 18:14:41 +02:00
zowners.go plugin/header: run go gen and small doc updates (#4754) 2021-07-15 10:10:16 +02:00

chaos

Name

chaos - allows for responding to TXT queries in the CH class.

Description

This is useful for retrieving version or author information from the server by querying a TXT record for a special domain name in the CH class.

Syntax

chaos [VERSION] [AUTHORS...]
  • VERSION is the version to return. Defaults to CoreDNS-<version>, if not set.
  • AUTHORS is what authors to return. This defaults to all GitHub handles in the OWNERS files.

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

Examples

Specify all the zones in full.

version.bind version.server authors.bind hostname.bind id.server {
    chaos CoreDNS-001 info@coredns.io
}

Or just default to .:

.  {
    chaos CoreDNS-001 info@coredns.io
}

And test with dig:

% dig @localhost CH TXT version.bind
...
;; ANSWER SECTION:
version.bind.		0	CH	TXT	"CoreDNS-001"
...