mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
@@ -40,6 +40,7 @@ kubernetes [ZONES...] {
|
|||||||
endpoint_pod_names
|
endpoint_pod_names
|
||||||
upstream [ADDRESS...]
|
upstream [ADDRESS...]
|
||||||
ttl TTL
|
ttl TTL
|
||||||
|
transfer to ADDRESS...
|
||||||
fallthrough [ZONES...]
|
fallthrough [ZONES...]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -90,6 +91,10 @@ kubernetes [ZONES...] {
|
|||||||
5 seconds, the maximum is capped at 3600 seconds.
|
5 seconds, the maximum is capped at 3600 seconds.
|
||||||
* `noendpoints` will turn off the serving of endpoint records by disabling the watch on endpoints.
|
* `noendpoints` 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.
|
||||||
|
* `transfer` enables zone transfers. It may be specified multiples times. `To` signals the direction
|
||||||
|
(only `to` is alllow). **ADDRESS** must be denoted in CIDR notation (127.0.0.1/32 etc.) or just as
|
||||||
|
plain addresses. The special wildcard `*` means: the entire internet.
|
||||||
|
Sending DNS notifies is not supported.
|
||||||
* `fallthrough` **[ZONES...]** If a query for a record in the zones for which the plugin is authoritative
|
* `fallthrough` **[ZONES...]** 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
|
||||||
@@ -199,7 +204,7 @@ or the word "any"), then that label will match all values. The labels that acce
|
|||||||
* _port and/or protocol_ in an `SRV` request: __port_.__protocol_.service.namespace.svc.zone.,
|
* _port and/or protocol_ in an `SRV` request: __port_.__protocol_.service.namespace.svc.zone.,
|
||||||
e.g. `_http.*.service.ns.svc.cluster.local`
|
e.g. `_http.*.service.ns.svc.cluster.local`
|
||||||
* multiple wild cards are allowed in a single query, e.g. `A` Request `*.*.svc.zone.` or `SRV` request `*.*.*.*.svc.zone.`
|
* multiple wild cards are allowed in a single query, e.g. `A` Request `*.*.svc.zone.` or `SRV` request `*.*.*.*.svc.zone.`
|
||||||
|
|
||||||
For example, Wildcards can be used to resolve all Endpoints for a Service as `A` records. e.g.: `*.service.ns.svc.myzone.local` will return the Endpoint IPs in the Service `service` in namespace `default`:
|
For example, Wildcards can be used to resolve all Endpoints for a Service as `A` records. e.g.: `*.service.ns.svc.myzone.local` will return the Endpoint IPs in the Service `service` in namespace `default`:
|
||||||
```
|
```
|
||||||
*.service.default.svc.cluster.local. 5 IN A 192.168.10.10
|
*.service.default.svc.cluster.local. 5 IN A 192.168.10.10
|
||||||
|
|||||||
Reference in New Issue
Block a user