added configuration for bind's TTL value, fixes #166

This commit is contained in:
Michael Kaufmann (d00p)
2010-04-20 06:22:11 +00:00
parent 4f5cb34f00
commit 96219f406d
7 changed files with 29 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ class bind
$date = date('Ymd');
$bindserial = (preg_match('/^' . $date . '/', $domain['bindserial']) ? $domain['bindserial'] + 1 : $date . '00');
$this->db->query('UPDATE `' . TABLE_PANEL_DOMAINS . '` SET `bindserial`=\'' . $bindserial . '\' WHERE `id`=\'' . $domain['id'] . '\'');
$zonefile = '$TTL 1W' . "\n";
$zonefile = '$TTL ' . (int)$this->settings['system']['defaultttl'] . "\n";
if(count($this->nameservers) == 0)
{