Files
coredns/middleware/etcd/etcd.md
Miek Gieben 78d2e31ec1 Add Stub resolving
SkyDNS can forward requests from one instance to another.
Add this base infrastructure for this feature to CoreDNS.

Add more tests as well.
2016-03-24 09:20:53 +00:00

37 lines
895 B
Markdown

# etcd
`etcd` enabled reading zone data from an etcd instance. The data in etcd has to be encoded as
a [message](https://github.com/skynetservices/skydns/blob/2fcff74cdc9f9a7dd64189a447ef27ac354b725f/msg/service.go#L26)
like [SkyDNS](https//github.com/skynetservices/skydns).
The etcd middleware makes extensive use of the proxy middleware to forward and query
other servers in the network.
## Syntax
~~~
etcd [zones...]
~~~
* `zones` zones it should be authoritative for.
The will default to `/skydns` as the path and the local etcd proxy (http://127.0.0.1:2379).
If no zones are specified the block's zone will be used as the zone.
If you want to `round robin` A and AAAA responses look at the `round_robin` middleware. optimize
middleware?
~~~
etcd {
path /skydns
endpoint endpoint...
stubzones
}
~~~
* `path` /skydns
* `endpoint` endpoints...
* `stubzones`
## Examples