Get DNS Records

Get DNS Records, Use this tool to get all DNS Records a domain.

Enter a domain name to get DNS records (eg: vncoder.org)

www.

$msg"; flush(); } if ($_POST["Submit"] == true) { if(phpversion() >= "4.2.0"){ extract($_POST); extract($_GET); extract($_SERVER); extract($_ENV); } $ntarget = ""; function lookup($target){ global $ntarget; $msg = "$target resolved to "; if( eregi("[a-zA-Z]", $target) ) $ntarget = @gethostbyname($target); else $ntarget = @gethostbyaddr($target); $msg .= $ntarget; message($msg); } function dig($target){ global $ntarget; message("

DNS Query Results:

"); #$target = gethostbyaddr($target); #if (! eregi("[a-zA-Z]", ($target = gethostbyaddr($target))) ) if( (!eregi("[a-zA-Z]", $target) && (!eregi("[a-zA-Z]", $ntarget)))) $msg .= "Can't do a DNS query without a hostname."; else{ if(!eregi("[a-zA-Z]", $target)) $target = $ntarget; if (! $msg .= trim(nl2br(`dig any '$target'`))) #bugfix $msg .= "The dig command is not working on your system."; } #TODO: Clean up output, remove ;;'s and DiG headers $msg .= "

"; message($msg); } if( (!$target) || (!preg_match("/^[\w\d\.\-]+\.[\w\d]{1,4}$/i",$target)) ){ message("Error: You did not specify a valid target host or IP."); } else { lookup($target); dig($target); } } ?>