Version: 1.0

Type: Full Script

Category: Networking

License: GNU General Public License

Description: Check DNS records, enter a name of box and you will se thi IP. :-D Version 1 is without ping sorry but next version will be better maybe :-D



<html>
<head><title>CHECK DNS RECORD</title></head>
<body>
<center><h2>Check your DNS record.....</h2></center>
<hr>
<div align=center>
<form action=dns_record.php method=post name=formular>
<input type=text name=target>
<input type=submit>
</form>
</div>
<hr>
<? 
   $vypis=checkdnsrr($target, "A");
   $vykonej=EscapeShellCmd("nslookup $target");
/*   $pingni=EscapeShellCmd("ping -c 1 $target");*/
   $podivej=exec($vykonej,$pole);
/*   $pinguj=exec($pingni, $pole2);*/
   $velikost=sizeof($pole);
/*   $velikost2=sizeof($pole2);*/
   

	if($vypis == 1) {   
			for($i=0;$i<$velikost;$i++) {
			echo "<center>$pole[$i]<br></center>";
			}
		
			
			
			
				
	echo "<hr>";
	echo "<font color=red>Box $target is registered in DNS.</font><br>";
        
        }else{
	echo "Box is probably not in DNS.";
	}


?>