coredns/middleware/etcd
Miek Gieben 6445a3f2f0 Cleanup docs and the chaos middleware
Make the CH middleware actually work. Needs a bit of a hack to route

the fake version.bind and friends zone to the correct handler. Fiddle

with the order in directive.go so that CH queries get logged as well.



Secondly add class rewriting to the rewrite middleware handler and also

log the class by default.
2016-04-04 15:45:17 +01:00
..
msg Add etcd middleware 2016-03-23 10:41:40 +00:00
singleflight Add etcd middleware 2016-03-23 10:41:40 +00:00
cname_test.go Cache elements of State 2016-04-04 08:19:06 +01:00
etcd.go Support SkyDNS' stubzones 2016-03-26 16:29:35 +00:00
group_test.go Cache elements of State 2016-04-04 08:19:06 +01:00
handler.go Cleanup docs and the chaos middleware 2016-04-04 15:45:17 +01:00
lookup.go Bugfix: bx in etcd.go didn't get Key 2016-03-25 15:30:44 +00:00
lookup_test.go Add testing package 2016-03-28 10:49:28 +01:00
multi_test.go Cache elements of State 2016-04-04 08:19:06 +01:00
other_test.go Cache elements of State 2016-04-04 08:19:06 +01:00
path.go Add etcd middleware 2016-03-23 10:41:40 +00:00
path_test.go Add etcd middleware 2016-03-23 10:41:40 +00:00
README.md middleware: change documentation filenames to README.md 2016-04-01 18:26:18 -04:00
setup_test.go Cache elements of State 2016-04-04 08:19:06 +01:00
stub.go Support SkyDNS' stubzones 2016-03-26 16:29:35 +00:00
stub_handler.go Support SkyDNS' stubzones 2016-03-26 16:29:35 +00:00
stub_test.go Support SkyDNS' stubzones 2016-03-26 16:29:35 +00:00

etcd

etcd enabled reading zone data from an etcd instance. The data in etcd has to be encoded as a message like 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 etcd 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 loadbalance middleware.

etcd [zones...] {
    stubzones
    path /skydns
    endpoint endpoint...
    upstream address...
    tls cert key cacert
}
  • stubzones enable the stub zones feature.
  • path the path inside etcd, defaults to "/skydns".
  • endpoint the etcd endpoints, default to "http://localhost:2397".
  • upstream upstream resolvers to be used resolve external names found in etcd.
  • tls followed the cert, key and the CA's cert filenames.

Examples