DNS Validation Demo : DNS Validation : Network PHP Source Code


PHP Source Code » Network » DNS Validation »

 

DNS Validation Demo



<html>
<head>
<title> hostname validator </title>
</head>
<body>
<?php
$hostname = "www.navioo.com";

if (!isset($hostname)) {
   die("Hostname value wasn't properly submitted. Retry.");
}
                           
if(empty($hostname)){
   die("Hostname field was left blank ! Retry.")
}
echo "<b>". $hostname ."</b> ";
                           
if(checkdnsrr($hostname)) {
    echo "has a valid MX record !<br>";
}else{
    die("does not exist");
}
?>
</body>
</html>                           

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Network
» DNS Validation