Trace DNS Script
Having problems with script found here only parts of it do not work. http://www.realwebhost.net/trace.phpGet these 2 errors. Any help would be appreciated.
DNS Query Results:
Warning: Address is not in a.b.c.d form in /home/username/public_html/trace.php on line 87
Can't do a DNS query without a hostname.
WWWhois Results:
Warning: Address is not in a.b.c.d form in /home/username/public_html/trace.php on line 101
Can't WWWhois without a domain name.
Warning: Address is not in a.b.c.d form in /home/username/public_html/trace.php on line 87
Can't do a DNS query without a hostname.
WWWhois Results:
Warning: Address is not in a.b.c.d form in /home/username/public_html/trace.php on line 101
Can't WWWhois without a domain name.
PHP Code:
function dig($target){
message("<p><b>DNS Query Results:</b><blockquote>");
#$target = gethostbyaddr($target);
line 87 next line
if (! eregi("[a-zA-Z]", ($target = gethostbyaddr($target))) )
$msg .= "Can't do a DNS query without a hostname.";
else{
if (! $msg .= trim(nl2br(`dig any '$target'`))) #bugfix
$msg .= "The <i>dig</i> command is not working on your system.";
}
#TODO: Clean up output, remove ;;'s and DiG headers
$msg .= "</blockquote></p>";
message($msg);
}
function wwwhois($target){
$server = "whois.crsnic.net";
message("<p><b>WWWhois Results:</b><blockquote>");
$target = gethostbyaddr($target);
line 101 next line
if (! eregi("[a-zA-Z]", $target))
$msg .= "Can't WWWhois without a domain name.";

