diff options
Diffstat (limited to 'plugin/header')
-rw-r--r-- | plugin/header/README.md | 15 | ||||
-rw-r--r-- | plugin/header/setup.go | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/plugin/header/README.md b/plugin/header/README.md index 862d23b02..30ae90315 100644 --- a/plugin/header/README.md +++ b/plugin/header/README.md @@ -2,11 +2,11 @@ ## Name -*header* - modifies the header for all the responses. +*header* - modifies the header for responses. ## Description -It ensures that the flags are in the desired state for all the responses. The modifications are made transparently for +*header* ensures that the flags are in the desired state for responses. The modifications are made transparently for the client. ## Syntax @@ -18,12 +18,12 @@ header { } ~~~ -* **ACTION** defines the state for dns flags. Actions are evaluated in the order they are defined so last one has the +* **ACTION** defines the state for DNS message header flags. Actions are evaluated in the order they are defined so last one has the most precedence. Allowed values are: * `set` * `clear` -* **FLAGS** are the dns flags that will be modified. Current supported flags include: - * `aa` - Authoritative +* **FLAGS** are the DNS header flags that will be modified. Current supported flags include: + * `aa` - Authoritative(Answer) * `ra` - RecursionAvailable * `rd` - RecursionDesired @@ -39,13 +39,12 @@ Make sure recursive available `ra` flag is set in all the responses: } ~~~ -Make sure recursive available `ra` and authoritative `aa` flags are set and recursive desired is cleared in all the -responses: +Make sure "recursion available" `ra` and "authoritative answer" `aa` flags are set and "recursion desired" is cleared in all responses: ~~~ corefile . { header { - set ra aa + set ra aa clear rd } } diff --git a/plugin/header/setup.go b/plugin/header/setup.go index b0e67206a..dbd4f6ed5 100644 --- a/plugin/header/setup.go +++ b/plugin/header/setup.go @@ -3,9 +3,9 @@ package header import ( "fmt" + "github.com/coredns/caddy" "github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/plugin" - "github.com/coredns/caddy" ) func init() { plugin.Register("header", setup) } |