blob: 59f3f3c3191cc36c8b86124bc632714827f8a0b2 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>IP Address Information</title>
</head>
<body>
<?php
$yourIP = $_SERVER['REMOTE_ADDR'];
$hostname = gethostbyaddr($yourIP);
$ip = gethostbyname($hostname);
$ipsMatch = ($ip == $yourIP);
echo "Your IP: " . $yourIP . "<br />";
echo "Your hostname (reverse lookup): " . $hostname . "<br />";
echo "Your hostname's IP (forward lookup of your reverse lookup): " . $ip . "<br />";
if( $ipsMatch ) {
echo "<font size=\"+4\" color=\"red\">Your DNS is broken. This may cause your connection to CVS to be slow!</font>";
}
else {
echo "<font size=\"+2\" color=\"green\">Your DNS seems okay! Thanks!</font>";
}
?>
</body>
</html>