middleware/reverse: small doc cleanup

This commit is contained in:
Miek Gieben
2017-07-13 10:12:10 +00:00
parent 8495e48297
commit 49c8f07cd6

View File

@@ -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