COREDNS-ROOT(7)
β¨ NAME β¨
root - simply specifies the root of where to find files. π
This is the COREDNS-ROOT(7) manual, bestie, and we're gonna make it make sense.
πΈ DESCRIPTION πΈ
Okay so the default root is literally the current working directory of CoreDNS. The root plugin lets you change that. A relative root path is relative to the current working directory.
β οΈ NOTE: The root directory is NOT currently supported by all plugins. Currently the following plugins respect the root plugin configuration:
fileπtlsπdnssecπ‘οΈ
This plugin can only be used once per Server Block. periodt π
π SYNTAX π
root PATH
PATH is the directory to set as CoreDNS' root. π«Ά
π¦ EXAMPLES π¦
Serve zone data (when the file plugin is used) from /etc/coredns/zones:
. {
root /etc/coredns/zones
}
When you use the root and tls plugin together, your cert and key should also be placed in the root directory. The example below will look for /config/cert.pem and /config/key.pem:
tls://example.com:853 {
root /config
tls cert.pem key.pem
whoami
}
π BUGS π
Bestie, this is the same important tea as above, but it lives here too:
π¨ NOTE: The root directory is NOT currently supported by all plugins. Currently the following plugins respect the root plugin configuration:
fileπtlsπdnssecπ‘οΈ
π«Ά cute sign-off: this page is from CoreDNS, dated March 2026, and it's the COREDNS-ROOT(7) manual. bye bestie, go slay those config files πβ¨
π¦ 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