| | |
| | | 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)"); |
| | |
| | | $ispconfig_id = $data["new"]["id"]; |
| | | $serial = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = ".$ispconfig_id); |
| | | $serial_id = $serial["serial"]; |
| | | $app->db->query("UPDATE powerdns.domains SET name = '$origin', notified_serial = $serial_id WHERE ispconfig_id = $ispconfig_id"); |
| | | //$app->db->query("UPDATE powerdns.domains SET name = '$origin', notified_serial = $serial_id WHERE ispconfig_id = $ispconfig_id"); |
| | | //$app->db->query("UPDATE powerdns.domains SET name = '$origin' WHERE ispconfig_id = $ispconfig_id"); |
| | | |
| | | if(substr($data["new"]["ns"], -1) == '.'){ |