coredns/plugin/header
Miek Gieben 50d888f3d7
plugin/header: run go gen and small doc updates (#4754)
* plugin/header: run go gen and small doc updates

Run go gen to enable the new plugin, this should fix the CI failures.
Small tweaks to the docs.

Signed-off-by: Miek Gieben <miek@miek.nl>

* another typo

Signed-off-by: Miek Gieben <miek@miek.nl>

* gofmt

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-07-15 10:10:16 +02:00
..
handler.go plugin/header: Introduce header plugin (#4752) 2021-07-15 09:32:39 +02:00
header.go plugin/header: Introduce header plugin (#4752) 2021-07-15 09:32:39 +02:00
header_test.go plugin/header: Introduce header plugin (#4752) 2021-07-15 09:32:39 +02:00
README.md plugin/header: run go gen and small doc updates (#4754) 2021-07-15 10:10:16 +02:00
setup.go plugin/header: run go gen and small doc updates (#4754) 2021-07-15 10:10:16 +02:00
setup_test.go plugin/header: Introduce header plugin (#4752) 2021-07-15 09:32:39 +02:00

header

Name

header - modifies the header for responses.

Description

header ensures that the flags are in the desired state for responses. The modifications are made transparently for the client.

Syntax

header {
    ACTION FLAGS...
    ACTION FLAGS...
}
  • 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 header flags that will be modified. Current supported flags include:
    • aa - Authoritative(Answer)
    • ra - RecursionAvailable
    • rd - RecursionDesired

Examples

Make sure recursive available ra flag is set in all the responses:

. {
    header {
        set ra
    }
}

Make sure "recursion available" ra and "authoritative answer" aa flags are set and "recursion desired" is cleared in all responses:

. {
    header {
        set ra aa
        clear rd
    }
}