diff options
author | N0YB <Al_Stu@Frontier.com> | 2013-03-16 17:19:46 -0700 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2013-03-16 17:19:46 -0700 |
commit | fe74228f2a8a9abc45a580a01559518043ca8d0b (patch) | |
tree | a02fce8c029171fa899fcc1085b99ec7691373a2 /usr/local/www/diag_dns.php | |
parent | ba6b2811a11e1ddf355a93cecbf72ccee71d9b85 (diff) | |
download | pfsense-fe74228f2a8a9abc45a580a01559518043ca8d0b.zip pfsense-fe74228f2a8a9abc45a580a01559518043ca8d0b.tar.gz |
Diag DNS Lookup Dialog Output
Display DNS lookup results in a dialog box rather than browsing away from the current page (Dashboard Firewall Widget or Status: System logs: Firewall) to the diag DNS page.
Especially useful when filtering so that filter does not have to be reposted to return to the current page.
Diffstat (limited to 'usr/local/www/diag_dns.php')
-rw-r--r-- | usr/local/www/diag_dns.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index 931a885..511f333 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -144,6 +144,23 @@ if ($_POST) { } } +if( ($_POST['host']) && ($_POST['dialog_output']) ) { + display_host_results ($host,$resolved,$dns_speeds); + exit; +} + +function display_host_results ($address,$hostname,$dns_speeds) { + echo gettext("IP Address") . ": {$address} \n"; + echo gettext("Host Name") . ": {$hostname} \n"; + echo "\n"; + echo gettext("Server") . "\t" . gettext("Query Time") . "\n"; + if(is_array($dns_speeds)) + foreach($dns_speeds as $qt){ + echo trim($qt['dns_server']) . "\t" . trim($qt['query_time']); + echo "\n"; + } +} + include("head.inc"); ?> <body link="#000000" vlink="#000000" alink="#000000"> <?php include("fbegin.inc"); ?> |