COREDNS-ROOT(7) CoreDNS Plugins COREDNS-ROOT(7) NAME root - simply specifies the root of where to find files. DESCRIPTION The default root is the current working directory of CoreDNS. The root plu- gin allows you to change this. A relative root path is relative to the cur- rent working directory. NOTE: The root directory is NOT currently sup- ported 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. 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 NOTE: The root directory is NOT currently supported by all plugins. Cur- rently the following plugins respect the root plugin configuration: * file * tls * dnssec CoreDNS March 2026 COREDNS-ROOT(7)
NAME | DESCRIPTION | SYNTAX | EXAMPLES | BUGS
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=coredns-root&sektion=7&manpath=FreeBSD+Ports+15.1.quarterly>
