aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-08 17:24:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-08 17:24:04 +0000
commit88463046f76e0d4d517c134d19394217783493ec (patch)
treedbac8208a968e4db61df58bde824211d8a5a2d3a /packages
parentcb53501d44312bccd147debb868056534f0d878b (diff)
downloadpfsense-packages-88463046f76e0d4d517c134d19394217783493ec.tar.gz
pfsense-packages-88463046f76e0d4d517c134d19394217783493ec.tar.bz2
pfsense-packages-88463046f76e0d4d517c134d19394217783493ec.zip
* Use correct failoverip
* Reload ping database upon zone up or down
Diffstat (limited to 'packages')
-rw-r--r--packages/tinydns/tinydns.inc2
-rw-r--r--packages/tinydns/tinydns_down.php1
-rw-r--r--packages/tinydns/tinydns_up.php1
3 files changed, 3 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index cc4371fa..a6dec04f 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -169,7 +169,7 @@ function tinydns_setup_ping_items() {
fwrite($fd, $ip . "|" . $domain['ipaddress'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php\n");
if($domain['row']) {
foreach($domain['row'] as $row) {
- fwrite($fd, $ip . "|" . $row['ipaddress'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php\n");
+ fwrite($fd, $ip . "|" . $row['failoverip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php\n");
}
}
}
diff --git a/packages/tinydns/tinydns_down.php b/packages/tinydns/tinydns_down.php
index cdc9a088..823de090 100644
--- a/packages/tinydns/tinydns_down.php
+++ b/packages/tinydns/tinydns_down.php
@@ -33,5 +33,6 @@
require("/usr/local/pkg/tinydns.inc");
tinydns_create_zone_file();
+tinydns_setup_ping_items();
?> \ No newline at end of file
diff --git a/packages/tinydns/tinydns_up.php b/packages/tinydns/tinydns_up.php
index 10a9201c..a42b0d6b 100644
--- a/packages/tinydns/tinydns_up.php
+++ b/packages/tinydns/tinydns_up.php
@@ -33,5 +33,6 @@
require("/usr/local/pkg/tinydns.inc");
tinydns_create_zone_file();
+tinydns_setup_ping_items();
?> \ No newline at end of file