diff options
-rw-r--r-- | packages/tinydns/tinydns_status.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php index bc3da8a2..9c862afe 100644 --- a/packages/tinydns/tinydns_status.php +++ b/packages/tinydns/tinydns_status.php @@ -81,7 +81,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) { $ipaddress = $ping['ipaddress']; $hostname = $ping['hostname']; $status = file_get_contents("/var/db/pingstatus/$ipaddress"); - if(stristr($tinydns_data, $ipaddress)) + if(stristr($tinydns_data, "+{$hostname}:{$ipaddress}")) $inservice = "<FONT COLOR='GREEN'>YES</FONT>"; else $inservice = "<FONT COLOR='BLUE'>NO</FONT>"; @@ -117,7 +117,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) { echo $ipaddress; if($row['loadbalance']) echo " (LB)"; - if(stristr($tinydns_data ,$row['failoverip'])) + if(stristr($tinydns_data, "+{$hostname}:{$row['failoverip']}")) $inservice = "<FONT COLOR='GREEN'>YES</FONT>"; else $inservice = "<FONT COLOR='BLUE'>NO</FONT>"; |