cron_tasks/bind: fix conditions for writing www records
The bind cronjob awlays creates www A/AAAA records, regardless of a domain's iswildcarddomain or wwwserveralias settings. With this patch www records only get created if "www alias" is selected for a domain, i.e. iswildcarddomain is disabled and wwwserveralias is enabled.
This commit is contained in:
committed by
Daniel Reichelt
parent
7bf8b74693
commit
627e22a2e6
@@ -333,10 +333,11 @@ class bind {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$records[] = '@';
|
$records[] = '@';
|
||||||
$records[] = 'www';
|
|
||||||
|
|
||||||
if ($domain['iswildcarddomain'] == '1') {
|
if ($domain['iswildcarddomain'] == '1') {
|
||||||
$records[] = '*';
|
$records[] = '*';
|
||||||
|
} else if ($domain['wwwserveralias'] == '1') {
|
||||||
|
$records[] = 'www';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$froxlorhost) {
|
if (!$froxlorhost) {
|
||||||
|
|||||||
Reference in New Issue
Block a user