use system.defaultttl setting also for SOA record; fixes #667

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-03-16 18:09:21 +01:00
parent 4028e3ba5c
commit 6764747fa9
2 changed files with 3 additions and 3 deletions

View File

@@ -304,7 +304,7 @@ class Dns
$soa_content = $primary_ns . " " . self::escapeSoaAdminMail(Settings::Get('panel.adminmail')) . " ";
$soa_content .= $domain['bindserial'] . " ";
// TODO for now, dummy time-periods
$soa_content .= "3600 900 604800 1200";
$soa_content .= "3600 900 604800 " . (int) Settings::Get('system.defaultttl');
$soa_record = new DnsEntry('@', 'SOA', $soa_content);
array_unshift($zonerecords, $soa_record);