Files
coredns/middleware/etcd/etcd.md

36 lines
874 B
Markdown
Raw Normal View History

2016-03-20 17:44:58 +00:00
# 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)
2016-03-20 21:36:55 +00:00
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.
2016-03-20 17:44:58 +00:00
## Syntax
~~~
2016-03-22 11:32:12 +00:00
etcd [zones...]
2016-03-20 17:44:58 +00:00
~~~
2016-03-22 11:32:12 +00:00
* `zones` zones it should be authoritative for.
2016-03-20 17:44:58 +00:00
The will default to `/skydns` as the path and the local etcd proxy (http://127.0.0.1:2379).
2016-03-22 11:32:12 +00:00
If no zones are specified the block's zone will be used as the zone.
2016-03-20 17:44:58 +00:00
2016-03-24 17:55:46 +00:00
If you want to `round robin` A and AAAA responses look at the `loadbalance` middleware.
2016-03-20 21:36:55 +00:00
2016-03-20 17:44:58 +00:00
~~~
etcd {
path /skydns
2016-03-22 11:04:56 +00:00
endpoint endpoint...
2016-03-20 17:44:58 +00:00
stubzones
}
~~~
2016-03-20 18:17:07 +00:00
* `path` /skydns
2016-03-22 11:04:56 +00:00
* `endpoint` endpoints...
2016-03-20 18:17:07 +00:00
* `stubzones`
2016-03-20 17:44:58 +00:00
## Examples