aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/file/file.go')
-rw-r--r--middleware/file/file.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/middleware/file/file.go b/middleware/file/file.go
index d2ced17e4..5dc63a292 100644
--- a/middleware/file/file.go
+++ b/middleware/file/file.go
@@ -13,17 +13,20 @@ import (
)
type (
+ // File is the middleware that reads zone data from disk.
File struct {
Next middleware.Handler
Zones Zones
}
+ // Zones maps zone names to a *Zone.
Zones struct {
Z map[string]*Zone
Names []string
}
)
+// ServeDNS implements the middleware.Handle interface.
func (f File) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
state := request.Request{W: w, Req: r}