mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
Cleanup docs and the chaos middleware
Make the CH middleware actually work. Needs a bit of a hack to route the fake version.bind and friends zone to the correct handler. Fiddle with the order in directive.go so that CH queries get logged as well. Secondly add class rewriting to the rewrite middleware handler and also log the class by default.
This commit is contained in:
@@ -16,6 +16,9 @@ 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 from *and* to look like a DNS class (`IN`, `CH`, or `HS`) the class of the message will be
|
||||
rewritten. I.e. to rewrite CH queries to IN use `rewrite CH IN`.
|
||||
|
||||
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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user