Hanno Böck commited on 2025-08-27 15:03:47
Zeige 1 geänderte Dateien mit 4 Einfügungen und 2 Löschungen.
... | ... |
@@ -28,6 +28,8 @@ $domain->ensure_userdomain(); |
28 | 28 |
|
29 | 29 |
DEBUG($domain); |
30 | 30 |
|
31 |
+$domainttl = $domain->defaultttl ? (int) $domain->defaultttl : 3600; |
|
32 |
+ |
|
31 | 33 |
title('DNS-Records für ' . filter_output_html($domain->fqdn)); |
32 | 34 |
headline('DNS-Records für <em>' . filter_output_html($domain->fqdn) . '</em>'); |
33 | 35 |
|
... | ... |
@@ -79,7 +81,7 @@ foreach ($records as $rec) { |
79 | 81 |
if ($rec['type'] == 'caa') { |
80 | 82 |
$data = $caa_properties[(int) $rec['spec']] . ' 0 "' . $data . '"'; |
81 | 83 |
} |
82 |
- $ttl = ($rec['ttl'] ? $rec['ttl'] : 3600); |
|
84 |
+ $ttl = ($rec['ttl'] ? $rec['ttl'] : $domainttl); |
|
83 | 85 |
$link = $rec['fqdn']; |
84 | 86 |
if (!in_array($rec['type'], $implemented_record_types)) { |
85 | 87 |
$editable = false; |
... | ... |
@@ -102,7 +104,7 @@ foreach ($auto_records as $rec) { |
102 | 104 |
if (($rec['type'] == 'txt') && (strlen($data) > 100)) { |
103 | 105 |
$data = substr($data, 0, 100) . "<em>[...]</em>"; |
104 | 106 |
} |
105 |
- $ttl = ($rec['ttl'] ? $rec['ttl'] : 3600); |
|
107 |
+ $ttl = ($rec['ttl'] ? $rec['ttl'] : $domainttl); |
|
106 | 108 |
output("<tr><td><em>{$rec['fqdn']}</em></td><td>" . strtoupper($rec['type']) . "</td><td>$data</td><td>{$ttl} Sek.</td><td> </td></tr>\n"); |
107 | 109 |
} |
108 | 110 |
|
109 | 111 |