readded rndc reload

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-02-13 15:00:13 +01:00
parent 28bf7c0c0b
commit 6c2d5ab8a0
1 changed files with 6 additions and 28 deletions

View File

@ -35,29 +35,7 @@ class DomainController
$this->zoneCachePath = '/var/cache/bind/'; $this->zoneCachePath = '/var/cache/bind/';
} }
/*
/**
* @param String $name
* @param mixed $a
* @param mixed $aaaa
*
* @return void
public function createZone(string $name, mixed $a, mixed $aaaa): void
{
$this->createZoneFile(name: $name, a: $a, aaaa: $aaaa);
/*
$zoneFilename = $this->localZonesDir . $name;
echo $zoneFilename . PHP_EOL;
if ($localZones = fopen(filename: $this->localZoneFile, mode: 'a')) {
fputs(stream: $localZones, data: "include \"$zoneFilename\";" . PHP_EOL);
fclose(stream: $localZones);
} else {
echo "Error writing to $this->localZoneFile, check permissions";
exit(1);
}
}
*/
function createIncludeFile() function createIncludeFile()
{ {
@ -73,7 +51,7 @@ class DomainController
} }
fclose(stream: $oFile); fclose(stream: $oFile);
// TODO rndc reload exec(command: '/usr/sbin/rndc reload');
} }
@ -265,9 +243,9 @@ class DomainController
/** /**
* @param String $panel * @param array $ip
* *
* @return false|string * @return String
*/ */
function createIPContent(array $ip): String function createIPContent(array $ip): String
{ {