Skip to content

Commit 447ba60

Browse files
committed
Fixed: FS#922 - PowerDNS plugin NOTIFY fix
1 parent fb1863c commit 447ba60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/plugins-available/powerdns_plugin.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ function soa_insert($event_name,$data) {
140140
if($ns == '') $ns = $origin;
141141

142142
$hostmaster = substr($data["new"]["mbox"], 0, -1);
143-
//$content = $ns.' '.$hostmaster.' 0';
144-
$content = $ns.' '.$hostmaster.' '.$serial_id.'';
143+
$content = $ns.' '.$hostmaster.' 0';
144+
//$content = $ns.' '.$hostmaster.' '.$serial_id.'';
145145
$ttl = $data["new"]["ttl"];
146146

147147
$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 @@ function soa_update($event_name,$data) {
171171
if($ns == '') $ns = $origin;
172172

173173
$hostmaster = substr($data["new"]["mbox"], 0, -1);
174-
//$content = $ns.' '.$hostmaster.' 0';
175-
$content = $ns.' '.$hostmaster.' '.$serial_id.'';
174+
$content = $ns.' '.$hostmaster.' 0';
175+
//$content = $ns.' '.$hostmaster.' '.$serial_id.'';
176176
$ttl = $data["new"]["ttl"];
177177
$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'");
178178
} else {

0 commit comments

Comments
 (0)