Add notifies to master servers

This adds a bunch of supporting code to send notifies to a primary

name server.
This commit is contained in:
Miek Gieben
2016-04-03 07:37:41 +01:00
parent 4a2a95561f
commit 6ecbdef112
5 changed files with 60 additions and 12 deletions

View File

@@ -13,6 +13,8 @@ func File(c *Controller) (middleware.Middleware, error) {
if err != nil {
return nil, err
}
// Set start function is transfer is specified
return func(next middleware.Handler) middleware.Handler {
return file.File{Next: next, Zones: zones}
}, nil
@@ -35,7 +37,7 @@ func fileParse(c *Controller) (file.Zones, error) {
origin = c.Val()
}
// normalize this origin
origin = middleware.Host(origin).StandardHost()
origin = middleware.Host(origin).Standard()
reader, err := os.Open(fileName)
if err != nil {