coredns/middleware/root
Yong Tang 81af74aad0 Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547)
This fix fixes import path from
`github.com/miekg/coredns`
->
`github.com/coredns/coredns`
2017-02-22 06:51:47 +00:00
..
README.md middleware/root: add it (#330) 2016-10-11 20:42:28 +01:00
root.go Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547) 2017-02-22 06:51:47 +00:00
root_test.go Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547) 2017-02-22 06:51:47 +00: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