Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coredns/demo
https://github.com/coredns/demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/coredns/demo
- Owner: coredns
- License: apache-2.0
- Created: 2018-12-05T23:27:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-20T19:18:34.000Z (over 1 year ago)
- Last Synced: 2024-04-17T18:05:14.481Z (8 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 23
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-coredns - demo - returns 1.1.1.1 for 172.0.0.0/8 or 127.0.0.0/8 and 8.8.8.8 otherwise (External Plguins)
README
# demo
## Name
*demo* - returns `1.1.1.1` for `172.0.0.0/8` or `127.0.0.0/8` and `8.8.8.8` otherwise
## Description
This demo plugin showcases the implementation of source IP based service discovery.
It is intended as a boilerplate code, so that anyone that is interested in coredns
implementation could build their plugin on top of this demo plugin.This demo plugin and its full code has been walked through in past KubeCon talks
Note: In order to add a new plugin, an additional step of `make gen` is needed. Therefore,
to build the coredns with demo plugin the following should be used:
```
docker run -it --rm -v $PWD:/v -w /v golang:1.16 sh -c 'make gen && make'
```## Syntax
~~~ txt
demo
~~~## Also See
See the [manual](https://coredns.io/manual).