add wildcard parameter to allow resolving multiple name to the same IP (#755)

* add wildcard parameter to allow resolving multiple name to the same IP

* first test for the reverse wildcard middleware

* update wildcard keyword test to pass code coverage
This commit is contained in:
jremond
2017-07-11 00:49:24 -04:00
committed by Pat Moroney
parent 21b0038b54
commit 0049230a93
4 changed files with 104 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ reverse NETWORK... {
hostname TEMPLATE
[ttl TTL]
[fallthrough]
[wildcard]
~~~
* **NETWORK** one or more CIDR formatted networks to respond on.
@@ -34,6 +35,12 @@ 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.
`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
~~~ txt