From 88463046f76e0d4d517c134d19394217783493ec Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 8 Dec 2006 17:24:04 +0000 Subject: * Use correct failoverip * Reload ping database upon zone up or down --- packages/tinydns/tinydns.inc | 2 +- packages/tinydns/tinydns_down.php | 1 + packages/tinydns/tinydns_up.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3