mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
* Add processing mode * Add processing mode * Update UTs * Update README.md * Change to use the constant Stop * Fix README per review comments
This commit is contained in:
committed by
John Belamaric
parent
36c7aa6437
commit
ec21f83425
@@ -8,7 +8,7 @@ Rewrites are invisible to the client. There are simple rewrites (fast) and compl
|
||||
## Syntax
|
||||
|
||||
~~~
|
||||
rewrite FIELD FROM TO
|
||||
rewrite [continue|stop] FIELD FROM TO
|
||||
~~~
|
||||
|
||||
* **FIELD** is (`type`, `class`, `name`, ...)
|
||||
@@ -26,8 +26,11 @@ needs to be a full match of the name, e.g., `rewrite name miek.nl example.org`.
|
||||
|
||||
When the FIELD is `edns0` an EDNS0 option can be appended to the request as described below.
|
||||
|
||||
If you specify multiple rules and an incoming query matches on multiple (simple) rules, only
|
||||
the first rewrite is applied.
|
||||
If you specify multiple rules and an incoming query matches on multiple rules, the rewrite
|
||||
will behave as following
|
||||
* `continue` will continue apply the next rule in the rule list.
|
||||
* `stop` will consider the current rule is the last rule and will not continue. Default behaviour
|
||||
for not specifying this rule processing mode is `stop`
|
||||
|
||||
## EDNS0 Options
|
||||
|
||||
|
||||
Reference in New Issue
Block a user