add "notifyafterupdate" flag

This commit is contained in:
root 2018-02-02 14:58:10 +01:00
parent 1dfd47ae70
commit 03d9d88026
3 changed files with 20 additions and 2 deletions

View file

@ -84,6 +84,14 @@ class PdnsAPI {
return $this->loadzone($zone['id']);
}
public function notifyzone($zoneid) {
$api = clone $this->http;
$api->method = 'PUT';
$api->url = "/servers/localhost/zones/$zoneid/notify";
$api->call();
return $api->json;
}
public function deletezone($zoneid) {
$api = clone $this->http;