@@ -37,7 +37,7 @@ If you want to \fBround robin\fR A and AAAA responses look at the \fBloadbalance
...
@@ -37,7 +37,7 @@ If you want to \fBround robin\fR A and AAAA responses look at the \fBloadbalance
etcd [ZONES\.\.\.] {
etcd [ZONES\.\.\.] {
stubzones
stubzones
fallthrough
fallthrough [ZONES\.\.\.]
path PATH
path PATH
endpoint ENDPOINT\.\.\.
endpoint ENDPOINT\.\.\.
upstream ADDRESS\.\.\.
upstream ADDRESS\.\.\.
...
@@ -52,7 +52,7 @@ etcd [ZONES\.\.\.] {
...
@@ -52,7 +52,7 @@ etcd [ZONES\.\.\.] {
\fBstubzones\fR enables the stub zones feature\. The stubzone is \fIonly\fR done in the etcd tree located under the \fIfirst\fR zone specified\.
\fBstubzones\fR enables the stub zones feature\. The stubzone is \fIonly\fR done in the etcd tree located under the \fIfirst\fR zone specified\.
.
.
.IP "\(bu" 4
.IP "\(bu" 4
\fBfallthrough\fR If zone matches but no record can be generated, pass request to the next plugin\.
\fBfallthrough\fR If zone matches but no record can be generated, pass request to the next plugin\. If \fB[ZONES\.\.\.]\fR is omitted, then fallthrough happens for all zones for which the plugin is authoritative\. If specific zones are listed (for example \fBin\-addr\.arpa\fR and \fBip6\.arpa\fR), then only queries for those zones will be subject to fallthrough\.
.
.
.IP "\(bu" 4
.IP "\(bu" 4
\fBPATH\fR the path inside etcd\. Defaults to "/skydns"\.
\fBPATH\fR the path inside etcd\. Defaults to "/skydns"\.
\fIfederation\fR \- enables federated \fIhttps://kubernetes\.io/docs/tasks/federation/federation\-service\-discovery/\fR queries to be resolved via the kubernetes plugin\.
\fIfederation\fR \- enables federated queries to be resolved via the kubernetes plugin\.
.
.
.SH "DESCRIPTION"
.SH "DESCRIPTION"
Enabling this plugin allows Federated \fIhttps://kubernetes\.io/docs/tasks/federation/federation\-service\-discovery/\fR queries to be resolved via the kubernetes plugin\.
.
.P
Enabling \fIfederation\fR without also having \fIkubernetes\fR is a noop\.
Enabling \fIfederation\fR without also having \fIkubernetes\fR is a noop\.
@@ -15,7 +15,7 @@ The hosts plugin is useful for serving zones from a /etc/hosts file\. It serves
...
@@ -15,7 +15,7 @@ The hosts plugin is useful for serving zones from a /etc/hosts file\. It serves
hosts [FILE [ZONES\.\.\.]] {
hosts [FILE [ZONES\.\.\.]] {
[INLINE]
[INLINE]
fallthrough
fallthrough [ZONES\.\.\.]
}
}
.
.
.fi
.fi
...
@@ -30,7 +30,7 @@ hosts [FILE [ZONES\.\.\.]] {
...
@@ -30,7 +30,7 @@ hosts [FILE [ZONES\.\.\.]] {
\fBINLINE\fR the hosts file contents inlined in Corefile\. If there are any lines before fallthrough then all of them will be treated as the additional content for hosts file\. The specified hosts file path will still be read but entries will be overrided\.
\fBINLINE\fR the hosts file contents inlined in Corefile\. If there are any lines before fallthrough then all of them will be treated as the additional content for hosts file\. The specified hosts file path will still be read but entries will be overrided\.
.
.
.IP "\(bu" 4
.IP "\(bu" 4
\fBfallthrough\fR If zone matches and no record can be generated, pass request to the next plugin\.
\fBfallthrough\fR If zone matches and no record can be generated, pass request to the next plugin\. If \fB[ZONES\.\.\.]\fR is omitted, then fallthrough happens for all zones for which the plugin is authoritative\. If specific zones are listed (for example \fBin\-addr\.arpa\fR and \fBip6\.arpa\fR), then only queries for those zones will be subject to fallthrough\.
\fBttl\fR allows you to set a custom TTL for responses\. The default (and allowed minimum) is to use 5 seconds, the maximum is capped at 3600 seconds\.
\fBttl\fR allows you to set a custom TTL for responses\. The default (and allowed minimum) is to use 5 seconds, the maximum is capped at 3600 seconds\.
.
.
.IP "\(bu" 4
.IP "\(bu" 4
\fBfallthrough\fR If a query for a record in the cluster zone results in NXDOMAIN, normally that is what the response will be\. However, if you specify this option, the query will instead be passed on down the plugin chain, which can include another plugin to handle the query\.
\fBfallthrough\fR \fB[ZONES\.\.\.]\fR If a query for a record in the zones for which the plugin is authoritative results in NXDOMAIN, normally that is what the response will be\. However, if you specify this option, the query will instead be passed on down the plugin chain, which can include another plugin to handle the query\. If \fB[ZONES\.\.\.]\fR is omitted, then fallthrough happens for all zones for which the plugin is authoritative\. If specific zones are listed (for example \fBin\-addr\.arpa\fR and \fBip6\.arpa\fR), then only queries for those zones will be subject to fallthrough\.
@@ -98,4 +98,6 @@ Or via an enviroment variable (this is supported throughout the Corefile): \fBex
...
@@ -98,4 +98,6 @@ Or via an enviroment variable (this is supported throughout the Corefile): \fBex
.fi
.fi
.
.
.IP "" 0
.IP "" 0
.
.SH "BUGS"
When reloading, we keep the handler running, meaning that any changes to the handler\'s address aren\'t picked up\. You\'ll need to restart CoreDNS for that to happen\.
When reloading, we keep the handler running, meaning that any changes to the handler\'s address aren\'t picked up\. You\'ll need to restart CoreDNS for that to happen\.
@@ -67,4 +67,6 @@ Listen on an all addresses on port 6060:
...
@@ -67,4 +67,6 @@ Listen on an all addresses on port 6060:
.fi
.fi
.
.
.IP "" 0
.IP "" 0
.
.SH "ALSO SEE"
See Go\'s pprof documentation \fIhttps://golang\.org/pkg/net/http/pprof/\fR and Profiling Go Programs \fIhttps://blog\.golang\.org/profiling\-go\-programs\fR\.
See Go\'s pprof documentation \fIhttps://golang\.org/pkg/net/http/pprof/\fR and Profiling Go Programs \fIhttps://blog\.golang\.org/profiling\-go\-programs\fR\.
When using the \fBgoogle_https\fR protocol the health checking will health check the wrong endpoint\. See \fIhttps://github\.com/coredns/coredns/issues/1202\fR for some background\.
When using the \fBgoogle_https\fR protocol the health checking will health check the wrong endpoint\. See \fIhttps://github\.com/coredns/coredns/issues/1202\fR for some background\.
@@ -16,7 +16,7 @@ If a request matches a regular expression (see Template Syntax below) this plugi
...
@@ -16,7 +16,7 @@ If a request matches a regular expression (see Template Syntax below) this plugi
reverse NETWORK\.\.\. {
reverse NETWORK\.\.\. {
hostname TEMPLATE
hostname TEMPLATE
[ttl TTL]
[ttl TTL]
[fallthrough]
[fallthrough [ZONES\.\.\.]]
[wildcard]
[wildcard]
.
.
.fi
.fi
...
@@ -31,7 +31,7 @@ reverse NETWORK\.\.\. {
...
@@ -31,7 +31,7 @@ reverse NETWORK\.\.\. {
\fBttl\fR defaults to 60
\fBttl\fR defaults to 60
.
.
.IP "\(bu" 4
.IP "\(bu" 4
\fBfallthrough\fR if zone matches and no record can be generated, pass request to the next plugin\.
\fBfallthrough\fR if zone matches and no record can be generated, pass request to the next plugin\. If \fB[ZONES\.\.\.]\fR is omitted, then fallthrough happens for all zones for which the plugin is authoritative\. If specific zones are listed (for example \fBin\-addr\.arpa\fR and \fBip6\.arpa\fR), then only queries for those zones will be subject to fallthrough\.
.
.
.IP "\(bu" 4
.IP "\(bu" 4
\fBwildcard\fR allows matches to catch all subdomains as well\.
\fBwildcard\fR allows matches to catch all subdomains as well\.
*template* - allows for dynamic responses based on the incoming query.
*template* - allows for dynamic responses based on the incoming query.
## Description
## Description
...
@@ -233,14 +235,14 @@ Named capture groups can be used to template one response for multiple patterns.
...
@@ -233,14 +235,14 @@ Named capture groups can be used to template one response for multiple patterns.
}
}
~~~
~~~
# Also see
## Also see
-[Go regexp](https://golang.org/pkg/regexp/) for details about the regex implementation
-[Go regexp](https://golang.org/pkg/regexp/) for details about the regex implementation
-[RE2 syntax reference](https://github.com/google/re2/wiki/Syntax) for details about the regex syntax
-[RE2 syntax reference](https://github.com/google/re2/wiki/Syntax) for details about the regex syntax
-[RFC-1034](https://tools.ietf.org/html/rfc1034#section-3.6.1) and [RFC 1035](https://tools.ietf.org/html/rfc1035#section-5) for the resource record format
-[RFC-1034](https://tools.ietf.org/html/rfc1034#section-3.6.1) and [RFC 1035](https://tools.ietf.org/html/rfc1035#section-5) for the resource record format
-[Go template](https://golang.org/pkg/text/template/) for the template language reference
-[Go template](https://golang.org/pkg/text/template/) for the template language reference
with notion of `{$ENV_VAR}`. This parser feature will break [Go template variables](https://golang.org/pkg/text/template/#hdr-Variables) notations like`{{$variable}}`.
with notion of `{$ENV_VAR}`. This parser feature will break [Go template variables](https://golang.org/pkg/text/template/#hdr-Variables) notations like`{{$variable}}`.