Allow rewriting of the the name of the query as well. And improve

the docs a little.
This commit is contained in:
Miek Gieben
2016-03-20 10:44:03 +00:00
parent 41d5d40a31
commit e954332b9f
3 changed files with 24 additions and 7 deletions

View File

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