use system.defaultttl setting also for SOA record; fixes #667
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
4
composer.lock
generated
4
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "e8e7674e76d62f5cfd913e3bb715eec2",
|
"content-hash": "5a09e82c87504e904337a4fc8a80e3a8",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "algo26-matthias/idna-convert",
|
"name": "algo26-matthias/idna-convert",
|
||||||
@@ -2988,7 +2988,7 @@
|
|||||||
"ext-openssl": "*"
|
"ext-openssl": "*"
|
||||||
},
|
},
|
||||||
"platform-dev": {
|
"platform-dev": {
|
||||||
"php": ">=7.0",
|
"php": ">=7.1",
|
||||||
"ext-pcntl": "*"
|
"ext-pcntl": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ class Dns
|
|||||||
$soa_content = $primary_ns . " " . self::escapeSoaAdminMail(Settings::Get('panel.adminmail')) . " ";
|
$soa_content = $primary_ns . " " . self::escapeSoaAdminMail(Settings::Get('panel.adminmail')) . " ";
|
||||||
$soa_content .= $domain['bindserial'] . " ";
|
$soa_content .= $domain['bindserial'] . " ";
|
||||||
// TODO for now, dummy time-periods
|
// 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);
|
$soa_record = new DnsEntry('@', 'SOA', $soa_content);
|
||||||
array_unshift($zonerecords, $soa_record);
|
array_unshift($zonerecords, $soa_record);
|
||||||
|
|||||||
Reference in New Issue
Block a user