small update to make a symlink (#234)

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2021-09-06 15:12:58 +02:00
committed by GitHub
parent 6d2a559228
commit d2d9f25a4b
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -75,6 +75,18 @@ as there are more tokens to parse. Since a plugin may appear multiple times, you
To plug your plugin into CoreDNS, put in
[`plugin.cfg`](https://github.com/coredns/coredns/blob/master/plugin.cfg) and run `go generate`.
If you're working with an external, non core, plugin it will be easiest to make a symlink from the
plugin directory to your plugin. I.e.
~~~ sh
cd plugin
ln -s ../../example .
cd ..
vi plugin.cfg # add example:example
go generate
go build
~~~
## How A Plugin Works in CoreDNS
Check out the [godoc for the plugin
+1 -1
View File
@@ -25,7 +25,7 @@ to update. It looks like this:
...
whoami:whoami
erratic:erratic
federation:github.com/coredns/federation
example:github.com/coredns/example
...
~~~