From 447ba60c8079e75f884b4ba04ec918292f372296 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 25 Oct 2009 06:14:38 -0400 Subject: [PATCH] Fixed: FS#922 - PowerDNS plugin NOTIFY fix --- server/plugins-available/powerdns_plugin.inc.php | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/plugins-available/powerdns_plugin.inc.php b/server/plugins-available/powerdns_plugin.inc.php index 003a812..1652a9a 100644 --- a/server/plugins-available/powerdns_plugin.inc.php +++ b/server/plugins-available/powerdns_plugin.inc.php @@ -140,8 +140,8 @@ if($ns == '') $ns = $origin; $hostmaster = substr($data["new"]["mbox"], 0, -1); - //$content = $ns.' '.$hostmaster.' 0'; - $content = $ns.' '.$hostmaster.' '.$serial_id.''; + $content = $ns.' '.$hostmaster.' 0'; + //$content = $ns.' '.$hostmaster.' '.$serial_id.''; $ttl = $data["new"]["ttl"]; $app->db->query("INSERT INTO powerdns.records (domain_id, name, type, content, ttl, prio, change_date, ispconfig_id) VALUES ($zone_id, '$origin', 'SOA', '$content', $ttl, 0, ".time().", $ispconfig_id)"); @@ -171,8 +171,8 @@ if($ns == '') $ns = $origin; $hostmaster = substr($data["new"]["mbox"], 0, -1); - //$content = $ns.' '.$hostmaster.' 0'; - $content = $ns.' '.$hostmaster.' '.$serial_id.''; + $content = $ns.' '.$hostmaster.' 0'; + //$content = $ns.' '.$hostmaster.' '.$serial_id.''; $ttl = $data["new"]["ttl"]; $app->db->query("UPDATE powerdns.records SET name = '$origin', content = '$content', ttl = $ttl, change_date = ".time()." WHERE ispconfig_id = ".$data["new"]["id"]." AND type = 'SOA'"); } else { -- Gitblit v1.9.1