From 8144a5e8d5184d685a533514c1ef72fba06f82b1 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 22 Feb 2018 14:05:25 +0000 Subject: [PATCH] Fix readme --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5e621d3..acbd310 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ # example -The example plugin prints "example" on every query received. It can be used as documentation for -writing external plugins and to test if external plugins compile with CoreDNS. +## Namme + +*example* - prints "example" on every query received. + +## Description + +The example plugin prints "example" on every query received. It servesused as documentation for +writing CoreDNS plugins. ## Syntax @@ -11,16 +17,12 @@ example ## Examples +In this configuration, we forward all queries to 9.9.9.9 and print "example" whenever we recieve +a query. + ``` corefile -example.com { - file example.com.db { - upstream 8.8.8.8 - } +. { + forward . 9.9.9.9 example } ``` - -## How to Enable - -Follow [these](https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/) steps, -*example* should be put relatively early in the plugin chain.