@@ -19,7 +19,6 @@ zonefile. New or changed zones are automatically picked up from disk only when S
...
@@ -19,7 +19,6 @@ zonefile. New or changed zones are automatically picked up from disk only when S
.nf
.nf
auto [ZONES...] {
auto [ZONES...] {
directory DIR [REGEXP ORIGIN\_TEMPLATE]
directory DIR [REGEXP ORIGIN\_TEMPLATE]
transfer to ADDRESS...
reload DURATION
reload DURATION
}
}
...
@@ -37,16 +36,14 @@ like \fB\fC{<number>}\fR are replaced with the respective matches in the file na
...
@@ -37,16 +36,14 @@ like \fB\fC{<number>}\fR are replaced with the respective matches in the file na
first match, \fB\fC{2}\fR is the second. The default is: \fB\fCdb\.(.*) {1}\fR i.e. from a file with the
first match, \fB\fC{2}\fR is the second. The default is: \fB\fCdb\.(.*) {1}\fR i.e. from a file with the
name \fB\fCdb.example.com\fR, the extracted origin will be \fB\fCexample.com\fR.
name \fB\fCdb.example.com\fR, the extracted origin will be \fB\fCexample.com\fR.
.IP \(bu 4
.IP \(bu 4
\fB\fCtransfer\fR enables zone transfers. It may be specified multiples times. \fB\fCTo\fR or \fB\fCfrom\fR signals
the direction. \fBADDRESS\fP must be denoted in CIDR notation (e.g., 127.0.0.1/32) or just as plain
addresses. The special wildcard \fB\fC*\fR means: the entire internet (only valid for 'transfer to').
When an address is specified a notify message will be send whenever the zone is reloaded.
.IP \(bu 4
\fB\fCreload\fR interval to perform reloads of zones if SOA version changes and zonefiles. It specifies how often CoreDNS should scan the directory to watch for file removal and addition. Default is one minute.
\fB\fCreload\fR interval to perform reloads of zones if SOA version changes and zonefiles. It specifies how often CoreDNS should scan the directory to watch for file removal and addition. Default is one minute.
Value of \fB\fC0\fR means to not scan for changes and reload. eg. \fB\fC30s\fR checks zonefile every 30 seconds
Value of \fB\fC0\fR means to not scan for changes and reload. eg. \fB\fC30s\fR checks zonefile every 30 seconds
and reloads zone when serial changes.
and reloads zone when serial changes.
.PP
For enabling zone transfers look at the \fItransfer\fP plugin.
.PP
.PP
All directives from the \fIfile\fP plugin are supported. Note that \fIauto\fP will load all zones found,
All directives from the \fIfile\fP plugin are supported. Note that \fIauto\fP will load all zones found,
even though the directive might only receive queries for a specific zone. I.e:
even though the directive might only receive queries for a specific zone. I.e:
...
@@ -80,8 +77,10 @@ notifies to 10.240.1.1
...
@@ -80,8 +77,10 @@ notifies to 10.240.1.1
org {
org {
auto {
auto {
directory /etc/coredns/zones/org
directory /etc/coredns/zones/org
transfer to *
}
transfer to 10.240.1.1
transfer {
to *
to 10.240.1.1
}
}
}
}
...
@@ -106,3 +105,8 @@ org {
...
@@ -106,3 +105,8 @@ org {
.fi
.fi
.RE
.RE
.SH "ALSO"
.PP
Use the \fIroot\fP plugin to help you specify the location of the zone files. See the \fItransfer\fP plugin
@@ -126,13 +125,6 @@ the endpoint, use the dashed IP address form.
...
@@ -126,13 +125,6 @@ the endpoint, use the dashed IP address form.
\fB\fCnoendpoints\fR will turn off the serving of endpoint records by disabling the watch on endpoints.
\fB\fCnoendpoints\fR will turn off the serving of endpoint records by disabling the watch on endpoints.
All endpoint queries and headless service queries will result in an NXDOMAIN.
All endpoint queries and headless service queries will result in an NXDOMAIN.
.IP \(bu 4
.IP \(bu 4
\fB\fCtransfer\fR enables zone transfers. It may be specified multiples times. \fB\fCTo\fR signals the direction
(only \fB\fCto\fR is allowed). \fBADDRESS\fP must be denoted in CIDR notation (127.0.0.1/32 etc.) or just as
plain addresses. The special wildcard \fB\fC*\fR means: the entire internet.
Sending DNS notifies is not supported.
Deprecated
\[la]https://github.com/kubernetes/dns/blob/master/docs/specification.md#26---deprecated-records\[ra] pod records in the subdomain \fB\fCpod.cluster.local\fR are not transferred.
.IP \(bu 4
\fB\fCfallthrough\fR \fB[ZONES...]\fP If a query for a record in the zones for which the plugin is authoritative
\fB\fCfallthrough\fR \fB[ZONES...]\fP 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,
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 will instead be passed on down the plugin chain, which can include another plugin to handle
...
@@ -145,6 +137,9 @@ This allows the querying pod to continue searching for the service in the search
...
@@ -145,6 +137,9 @@ This allows the querying pod to continue searching for the service in the search
The search path could, for example, include another Kubernetes cluster.
The search path could, for example, include another Kubernetes cluster.
.PP
Enabling zone transfer is done by using the \fItransfer\fP plugin.
.SH "READY"
.SH "READY"
.PP
.PP
This plugin reports readiness to the ready plugin. This will happen after it has synced to the
This plugin reports readiness to the ready plugin. This will happen after it has synced to the
...
@@ -347,3 +342,8 @@ It may take one of the three values:
...
@@ -347,3 +342,8 @@ It may take one of the three values:
.PP
.PP
The duration metric only supports the "headless_with_selector" service currently.
The duration metric only supports the "headless_with_selector" service currently.
.SH "ALSO SEE"
.PP
See the \fIautopath\fP plugin to enable search path optimizations. And use the \fItransfer\fP plugin to