Skip to content
Snippets Groups Projects
Commit dc491613 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'stable-3.1' into 'stable-3.1'

removed server-id from 550-bind_dnssec.inc.php

See merge request !630
parents bfe71a5e a15af772
No related branches found
No related tags found
No related merge requests found
...@@ -84,11 +84,12 @@ class cronjob_bind_dnssec extends cronjob { ...@@ -84,11 +84,12 @@ class cronjob_bind_dnssec extends cronjob {
$app->uses("getconf,tpl"); $app->uses("getconf,tpl");
//* load the server configuration options //* load the server configuration options
$dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns'); // $dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns');
//TODO : change this when distribution information has been integrated into server record //TODO : change this when distribution information has been integrated into server record
// $filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.'; // $filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.';
$soas = $app->db->queryAllRecords("SELECT id,serial,origin FROM dns_soa WHERE server_id = ? AND active= 'Y' AND dnssec_wanted = 'Y' AND dnssec_initialized = 'Y' AND (dnssec_last_signed < ? OR dnssec_last_signed > ?)", $conf['server_id'], time()-(3600*24*5)+900, time()+900); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance) // $soas = $app->db->queryAllRecords("SELECT id,serial,origin FROM dns_soa WHERE server_id = ? AND active= 'Y' AND dnssec_wanted = 'Y' AND dnssec_initialized = 'Y' AND (dnssec_last_signed < ? OR dnssec_last_signed > ?)", $conf['server_id'], time()-(3600*24*5)+900, time()+900); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
$soas = $app->db->queryAllRecords("SELECT id,serial,origin FROM dns_soa WHERE active= 'Y' AND dnssec_wanted = 'Y' AND dnssec_initialized = 'Y' AND (dnssec_last_signed < ? OR dnssec_last_signed > ?)", time()-(3600*24*5)+900, time()+900); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
foreach ($soas as $data) { foreach ($soas as $data) {
$domain = substr($data['origin'], 0, strlen($data['origin'])-1); $domain = substr($data['origin'], 0, strlen($data['origin'])-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment