mirror of
https://github.com/coredns/coredns.git
synced 2025-11-16 17:02:16 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user