mirror of
https://github.com/coredns/coredns.git
synced 2025-11-21 11:22:20 -05:00
Allow rewriting of the the name of the query as well. And improve
the docs a little.
This commit is contained in:
@@ -16,9 +16,13 @@ rewrite from to
|
||||
If from *and* to look like a DNS type (`A`, `MX`, etc.) the type of the message will be rewriten,
|
||||
i.e. to rewrite ANY queries to HINFO, use `rewrite ANY HINFO`.
|
||||
|
||||
If it does not look like a type a name is assumed and the qname in the message is rewritten.
|
||||
If it does not look like a type a name is assumed and the qname in the message is rewritten, this
|
||||
needs to be a full match of the name `rewrite miek.nl example.org`.
|
||||
|
||||
Advanced users may open a block and make a complex rewrite rule:
|
||||
TODO(miek): this has not yet been implemented.
|
||||
|
||||
> Everything below this line has not been implemented, yet.
|
||||
|
||||
~~~
|
||||
rewrite [basename] {
|
||||
|
||||
Reference in New Issue
Block a user