#!/usr/local/bin/perl
# restart.cgi
# Restart the running named

require './bind8-lib.pl';
&ReadParse();
%access = &get_module_acl();
$access{'ro'} && &error($text{'restart_ecannot'});
$access{'apply'} == 1 || &error($text{'restart_ecannot'});
$err = &restart_bind();
&error($err) if ($err);
&webmin_log("apply");
&redirect("");

