COREDNS-HEADER(7)
π NAME π
header β modifies the header for queries and responses. This is the page for COREDNS-HEADER(7), bestie π
β¨ DESCRIPTION β¨
Okay so header makes sure the flags are in the desired state for queries and responses. The modifications are made transparently for the client and subsequent plugins. No cap, it just quietly handles the vibes πβ¨
πΈ SYNTAX πΈ
header {
SELECTOR ACTION FLAGS...
SELECTOR ACTION FLAGS...
}
SELECTORβ defines if the action should be applied on query or response.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:setclear
FLAGSβ the DNS header flags that will be modified. Current supported flags include:aaβ Authoritative(Answer)raβ RecursionAvailablerdβ RecursionDesired
Order matters, periodt π actions are evaluated in the order they're defined, so the last one has the most precedence.
π₯ EXAMPLES π₯
Make sure recursive available ra flag is set in all the responses:
. {
header {
response set ra
}
}
Make sure "recursion available" ra and "authoritative answer" aa flags are set and "recursion desired" is cleared in all responses:
. {
header {
response set ra aa
response clear rd
}
}
Make sure "recursion desired" rd is set for all subsequent plugins::
. {
header {
query set rd
}
}
Later, bestie π«Ά β this iconic page is from CoreDNS, dated March 2026, and it's COREDNS-HEADER(7). Bye π
π¦ where this page comes from
- nixpkgs unstable: coredns 1.14.7
- opensuse-leap 16.0: coredns-extras 1.15.0-bp160.1.1 Β· Apache-2.0 AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms