Skip to content

Commit

Permalink
Merge pull request #7 from asquelt/master
Browse files Browse the repository at this point in the history
allow dns reload
  • Loading branch information
toorop committed Apr 15, 2016
2 parents 41839cf + bcda6ff commit 982e740
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func getDomainCmds(OVHClient *govh.OVHClient) (cmds []cli.Command) {
dieOk()
},
},
// get (import)zone file
// get (import) zone file
{
Name: "import",
Description: "import zone as Bind zonefile format",
Expand Down Expand Up @@ -159,6 +159,17 @@ func getDomainCmds(OVHClient *govh.OVHClient) (cmds []cli.Command) {
dieOk(formatOutput(task, c.Bool("json")))
},
},
// Refresh DNSes
{
Name: "reload",
Description: "apply zone modifications on DNS servers",
Usage: "ovh domain zone reload ZONE" + NLTAB + "Example: ovh domain zone reload ovh.com",
Action: func(c *cli.Context) {
dieIfArgsMiss(len(c.Args()), 1)
dieOnError(domClient.RefreshZone(c.Args()[0]))
dieOk()
},
},
},
},
}
Expand Down

0 comments on commit 982e740

Please sign in to comment.