mirror of
https://github.com/coredns/coredns.io.git
synced 2024-04-21 12:32:00 +00:00
small update to make a symlink (#234)
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -25,7 +25,7 @@ to update. It looks like this:
|
||||
...
|
||||
whoami:whoami
|
||||
erratic:erratic
|
||||
federation:github.com/coredns/federation
|
||||
example:github.com/coredns/example
|
||||
...
|
||||
~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user