mirror of
https://github.com/coredns/coredns.git
synced 2025-11-06 03:56:24 -05:00
middleware/reverse: small doc cleanup
This commit is contained in:
@@ -15,7 +15,8 @@ reverse NETWORK... {
|
|||||||
* **NETWORK** one or more CIDR formatted networks to respond on.
|
* **NETWORK** one or more CIDR formatted networks to respond on.
|
||||||
* `hostname` injects the IP and zone to a template for the hostname. Defaults to "ip-{IP}.{zone[1]}". See below for template.
|
* `hostname` injects the IP and zone to a template for the hostname. Defaults to "ip-{IP}.{zone[1]}". See below for template.
|
||||||
* `ttl` defaults to 60
|
* `ttl` defaults to 60
|
||||||
* `fallthrough` If zone matches and no record can be generated, pass request to the next middleware.
|
* `fallthrough` if zone matches and no record can be generated, pass request to the next middleware.
|
||||||
|
* `wildcard` allows matches to catch all subdomains as well.
|
||||||
|
|
||||||
### Template Syntax
|
### Template Syntax
|
||||||
|
|
||||||
@@ -35,12 +36,6 @@ The `{zone[i]}` symbol is **optional** and can be replaced by a fixed (zone) str
|
|||||||
The zone will be matched by the zones listed in *this* configuration stanza.
|
The zone will be matched by the zones listed in *this* configuration stanza.
|
||||||
`i` needs to be replaced with the index of the configured listener zones, starting with 1.
|
`i` needs to be replaced with the index of the configured listener zones, starting with 1.
|
||||||
|
|
||||||
### `wildcard`
|
|
||||||
|
|
||||||
If `wildcard` is true :
|
|
||||||
any.thing.ip-1.2.3.4.example.org resolves to 1.2.3.4 (ip-{ip}.{zone} is the hostname/template)
|
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
~~~ txt
|
~~~ txt
|
||||||
|
|||||||
Reference in New Issue
Block a user