dns: make mail address of SOA records configurable

This commit is contained in:
Daniel Reichelt
2021-02-20 20:01:04 +01:00
committed by Daniel Reichelt
parent 5a6343b47c
commit a1b8807b0f
7 changed files with 31 additions and 3 deletions

View File

@@ -365,7 +365,11 @@ class Dns
}
// PowerDNS does not like multi-line-format
$soa_content = $primary_ns . " " . self::escapeSoaAdminMail(Settings::Get('panel.adminmail')) . " ";
$soa_email = Settings::Get('system.soaemail');
if ($soa_email == "") {
$soa_email = Settings::Get('panel.adminmail');
}
$soa_content = $primary_ns . " " . self::escapeSoaAdminMail($soa_email) . " ";
$soa_content .= $domain['bindserial'] . " ";
// TODO for now, dummy time-periods
$soa_content .= "3600 900 604800 " . (int) Settings::Get('system.defaultttl');