diff options
Diffstat (limited to 'usr/local/www/diag_dns.php')
-rw-r--r-- | usr/local/www/diag_dns.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index 715cb0b..4f70d56 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -51,10 +51,12 @@ if($_GET['createalias'] == "true") { $resolved = split("\n", $dig); $isfirst = true; foreach($resolved as $re) { - if(!$isfirst) - $addresses .= " "; - $addresses .= $re . "/32"; - $isfirst = false; + if($re <> "") { + if(!$isfirst) + $addresses .= " "; + $addresses .= $re . "/32"; + $isfirst = false; + } } $newalias = array(); $aliasname = str_replace(array(".","-"), "_", $host); |