diff options
author | jim-p <jim@pingle.org> | 2009-06-01 21:17:03 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-06-01 21:17:03 -0400 |
commit | 2312b0eb263b03c10d9a8f589a611333cb6fa2d8 (patch) | |
tree | 2de2b950b5eda01da0045bb5cc25c1c38a960273 /usr/local/www/diag_dns.php | |
parent | 737ed7d14e997ed9a81aba6a38c6edc4b777dea1 (diff) | |
download | pfsense-2312b0eb263b03c10d9a8f589a611333cb6fa2d8.zip pfsense-2312b0eb263b03c10d9a8f589a611333cb6fa2d8.tar.gz |
How about some handy links to external IP info sources, with a suitable warning.
Diffstat (limited to 'usr/local/www/diag_dns.php')
-rw-r--r-- | usr/local/www/diag_dns.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index 964763a..da4b3bd 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -49,13 +49,21 @@ if ($_POST) { $type = "unknown"; $resolved = ""; + $ipaddr = ""; + $hostname = ""; if (!$input_errors) { if (is_ipaddr($host)) { $type = "ip"; $resolved = gethostbyaddr($host); + $ipaddr = $host; + if ($host != $resolved) + $hostname = $resolved; } elseif (is_hostname($host)) { $type = "hostname"; $resolved = gethostbyname($host); + $hostname = $host; + if ($host != $resolved) + $ipaddr = $resolved; } if ($host == $resolved) { @@ -83,6 +91,16 @@ include("head.inc"); ?> <? } ?> </td> </tr> + <?php if (!$input_errors && $ipaddr) { ?> + <tr> + <td width="22%" valign="top">More Information:</td> + <td width="78%" class="vtable"> + NOTE: These links are to external services, so their reliability cannot be guaranteed.<br/><br/> + <a href="http://private.dnsstuff.com/tools/whois.ch?ip=<?php echo $ipaddr; ?>">IP WHOIS @ DNS Stuff</a><br /> + <a href="http://private.dnsstuff.com/tools/ipall.ch?ip=<?php echo $ipaddr; ?>">IP Info @ DNS Stuff</a> + </td> + </tr> + <?php } ?> <tr> <td width="22%" valign="top"> </td> <td width="78%"> |