diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/tinydns/tinydns.inc | 2 | ||||
-rw-r--r-- | packages/tinydns/tinydns_down.php | 1 | ||||
-rw-r--r-- | packages/tinydns/tinydns_up.php | 1 |
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 |