Skip to content

Commit 56b0b89

Browse files
committed
- Added "serial" and "stamp" columns to the dns_rr table.
1 parent 830d119 commit 56b0b89

23 files changed

+1897
-1664
lines changed

install/sql/ispconfig3.sql

Lines changed: 1666 additions & 1664 deletions
Large diffs are not rendered by default.

interface/web/dns/dns_a_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_aaaa_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_alias_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_cname_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_hinfo_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_mx_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_ns_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_ptr_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

interface/web/dns/dns_rp_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function onSubmit() {
100100
// Set the server ID of the rr record to the same server ID as the parent record.
101101
$this->dataRecord["server_id"] = $soa["server_id"];
102102

103+
// Update the serial number and timestamp of the RR record
104+
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
105+
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
106+
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');
107+
103108
parent::onSubmit();
104109
}
105110

0 commit comments

Comments
 (0)