aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/xfr.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/file/xfr.go')
-rw-r--r--middleware/file/xfr.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/middleware/file/xfr.go b/middleware/file/xfr.go
index d5ea1f2d3..e4fcd7efa 100644
--- a/middleware/file/xfr.go
+++ b/middleware/file/xfr.go
@@ -10,13 +10,12 @@ import (
"golang.org/x/net/context"
)
-type (
- Xfr struct {
- *Zone
- }
-)
+// Xfr serves up an AXFR.
+type Xfr struct {
+ *Zone
+}
-// Serve an AXFR (and fallback of IXFR) as well.
+// ServeDNS implements the middleware.Handler interface.
func (x Xfr) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
state := request.Request{W: w, Req: r}
if !x.TransferAllowed(state) {