let createDomainZone() return the DnsZone object for better use later
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -21,12 +21,15 @@ class DnsZone
|
||||
|
||||
public $origin;
|
||||
|
||||
public $serial;
|
||||
|
||||
public $records;
|
||||
|
||||
public function __construct($ttl = 18000, $origin = '', $records = null)
|
||||
public function __construct($ttl = 18000, $origin = '', $serial = '', $records = null)
|
||||
{
|
||||
$this->ttl = $ttl;
|
||||
$this->origin = $origin;
|
||||
$this->serial = $serial;
|
||||
$this->records = $records;
|
||||
}
|
||||
|
||||
|
||||
@@ -259,9 +259,9 @@ function createDomainZone($domain_id, $froxlorhostname = false)
|
||||
$soa_record = new DnsEntry('@', 'SOA', $soa_content);
|
||||
array_unshift($zonerecords, $soa_record);
|
||||
|
||||
$zone = new DnsZone((int) Settings::Get('system.defaultttl'), $domain['domain'], $zonerecords);
|
||||
$zone = new DnsZone((int) Settings::Get('system.defaultttl'), $domain['domain'], $domain['bindserial'], $zonerecords);
|
||||
|
||||
return (string)$zone;
|
||||
return $zone;
|
||||
}
|
||||
|
||||
function addRequiredEntry($record = '@', $type = 'A', &$required)
|
||||
|
||||
Reference in New Issue
Block a user