diff options
author | 2017-10-31 07:14:49 +0000 | |
---|---|---|
committer | 2017-10-31 07:14:49 +0000 | |
commit | 87c9f00c83212734d7ab0172ac34aee5bd271b07 (patch) | |
tree | cf100e27d2d91259a7e389900133e4a154c393e5 /plugin/file/README.md | |
parent | 4a4556f0d6a36508c144d1021950972f9b9ff675 (diff) | |
download | coredns-87c9f00c83212734d7ab0172ac34aee5bd271b07.tar.gz coredns-87c9f00c83212734d7ab0172ac34aee5bd271b07.tar.zst coredns-87c9f00c83212734d7ab0172ac34aee5bd271b07.zip |
readme: more tests (#1184)
* readme: more tests
Add dnssec and file plugin to the test readme. This requires creating a
bunch of files with the right content. Doing so already unconvered an
unconditional type assertion in DNSSEC. This PR will include the fix for
that as well.
Also extended the snippets in the file plugin README, so that they are
whole Corefile - showing more value and checking all corefile snippets.
Create outliner right now is the kubernetes plugin, because even setting
the right env vars will result in:
open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory":
Which we can't create for a test.
* lint
Diffstat (limited to 'plugin/file/README.md')
-rw-r--r-- | plugin/file/README.md | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/plugin/file/README.md b/plugin/file/README.md index 3dfb319bb..50912ca9c 100644 --- a/plugin/file/README.md +++ b/plugin/file/README.md @@ -44,9 +44,22 @@ file DBFILE [ZONES... ] { Load the `example.org` zone from `example.org.signed` and allow transfers to the internet, but send notifies to 10.240.1.1 +~~~ corefile +example.org { + file example.org.signed { + transfer to * + transfer to 10.240.1.1 + } +} +~~~ + +Or use a single zone file for multiple zones: + ~~~ -file example.org.signed example.org { - transfer to * - transfer to 10.240.1.1 +. { + file example.org.signed example.org example.net { + transfer to * + transfer to 10.240.1.1 + } } ~~~ |