Skip to content

Commit 35a8f56

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/plugins-available/powerdns_plugin.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function soa_update($event_name,$data) {
160160
$ispconfig_id = $data["new"]["id"];
161161
$serial = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = ".$ispconfig_id);
162162
$serial_id = $serial["serial"];
163-
$app->db->query("UPDATE powerdns.domains SET name = '$origin', notified_serial = $serial_id WHERE ispconfig_id = $ispconfig_id");
163+
//$app->db->query("UPDATE powerdns.domains SET name = '$origin', notified_serial = $serial_id WHERE ispconfig_id = $ispconfig_id");
164164
//$app->db->query("UPDATE powerdns.domains SET name = '$origin' WHERE ispconfig_id = $ispconfig_id");
165165

166166
if(substr($data["new"]["ns"], -1) == '.'){
@@ -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)