mirror of
https://github.com/coredns/coredns.git
synced 2025-11-29 15:14:02 -05:00
middleware/file: Support delegations (#124)
Return a delegation when seeing one while traversing the tree in search of an answer. Put the SOA and NS record in the zone.Apex as these are to be handled somewhat special. Lowercase record on insert to make compares easier. This lowercases all RR that have domain names in their rdata as well.
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
`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).
|
||||
like [SkyDNS](https//github.com/skynetservices/skydns). It should also work just like SkyDNS.
|
||||
|
||||
The etcd middleware makes extensive use of the proxy middleware to forward and query
|
||||
other servers in the network.
|
||||
The etcd middleware makes extensive use of the proxy middleware to forward and query other servers
|
||||
in the network.
|
||||
|
||||
## Syntax
|
||||
|
||||
@@ -15,7 +15,7 @@ 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).
|
||||
The path will default to `/skydns` 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.
|
||||
@@ -30,10 +30,28 @@ etcd [zones...] {
|
||||
}
|
||||
~~~
|
||||
|
||||
* `stubzones` enable the stub zones feature.
|
||||
* `stubzones` enable the stub zones feature. The stubzone is *only* done in the etcd tree located
|
||||
under the *first* zone specified.
|
||||
* `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.
|
||||
* `upstream` upstream resolvers to be used resolve external names found in etcd, think CNAMEs
|
||||
pointing to external names. If you want CoreDNS to act as a proxy for clients you'll need to add
|
||||
the proxy middleware.
|
||||
* `tls` followed the cert, key and the CA's cert filenames.
|
||||
|
||||
## Examples
|
||||
|
||||
This is the default SkyDNS setup, with everying specified in full:
|
||||
|
||||
~~~
|
||||
.:53 {
|
||||
etcd {
|
||||
stubzones
|
||||
path /skydns
|
||||
endpoint http://localhost:2397
|
||||
upstream 8.8.8.8:53 8.8.4.4:53
|
||||
}
|
||||
loadbalance
|
||||
proxy . 8.8.8.8:53 8.8.4.4:53
|
||||
}
|
||||
~~~
|
||||
|
||||
Reference in New Issue
Block a user