coredns/middleware/root
2017-08-26 16:58:04 +01:00
..
README.md Fix all READMEs and some other fluff (#788) 2017-07-24 08:24:53 -07:00
root.go core: add more transports (#574) 2017-03-13 20:24:37 +00:00
root_test.go changes in Caddy caused mw/root tests to fail: 4cce8c7b6b (#990) 2017-08-26 16:58:04 +01:00

root

root simply specifies the root of where CoreDNS finds (e.g.) zone files.

The default root is the current working directory of CoreDNS. A relative root path is relative to the current working directory.

Syntax

root PATH

PATH is the directory to set as CoreDNS' root.

Examples

Serve zone data (when the file middleware is used) from /etc/coredns/zones:

root /etc/coredns/zones