Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there any opensource web-application tools like ?

I want to perform DIG, traceroute, ping, telnet, whois etc.

share|improve this question

This is a little something I whipped up for my own evil purposes that does most of that you're looking at doing. It's not as flashy as, but it get's the job done. It's written PHP:

    Network Toolbox:
    This script runs various Linux-based command line utilities against a
    given domain name and returns the results of those programs.
    Copyright (C) 2011 Justin Pearce (

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <>.
Network Toolbox on: <?php echo $_SERVER['HTTP_HOST'];?>
<script type="text/javascript">
function doQuerySet(){
   document.getElementById("resultset").innerHTML="Querying...please stand by...";
  font-family: Arial, Tahoma, Verdana, sans-serif;
  font-size: 12px;
  color: #000000;
  background-color: #FFFFFF;
<h1>Network Toolbox</h1>
Enter the domain name or IP address you wish to query, select the deisred operation(s) and click "Query".<br>
(Please allow some time for the operations to complete)<br>
<form method="post">
<input type="text" name="domain" value="<?php if(isset($_REQUEST['domain'])){echo $_REQUEST['domain']; } ?>" onClick=";"/>
<input type="submit" name="submit" value="Query" onclick="doQuerySet();"/>
<td><input type="checkbox" name="ping" value="1" <?php echo (isset($_REQUEST['ping']))?'checked':''; ?> /> Ping</td>
<td><input type="checkbox" name="trace" value="1" <?php echo (isset($_REQUEST['trace']))?'checked':''; ?> /> Trace</td>
<td><input type="checkbox" name="whois" value="1" <?php echo (isset($_REQUEST['whois']))?'checked':''; ?> /> Whois</td>
<td><input type="checkbox" name="query" value="1" <?php echo (isset($_REQUEST['query']))?'checked':''; ?> /> Domain Query</td>
<div id="resultset">
$domain = $_REQUEST['domain'];
$domain = str_replace('&', '', $domain);
$domain = str_replace('|', '', $domain);
$domain = str_replace('>', '', $domain);
$domain = str_replace('<', '', $domain);
$domain = str_replace('http://', '', $domain);
$domain = str_replace('/', '', $domain);
$output="<h2>Results for ".$domain."</h2>\n\n";
   $output .= "<b>Ping results</b>:"."\n".shell_exec("ping -c10 ".$domain)."\n";
   $output .= "<b>Trace results:</b>"."\n".shell_exec("traceroute ".$domain)."\n";
   $output .= "<b>WHOIS results:</b>"."\n".shell_exec("whois ".$domain)."\n";
   $output .= "<b>DIG results:</b>"."\n".shell_exec("dig any ".$domain)."\n";
   $output .= "<b>NSLookup Results:</b>"."\n".shell_exec("nslookup -class=ANY -querytype=ANY ".$domain)."\n";
   $output .= "<b>Host results:</b>"."\n".shell_exec("host -a ".$domain)."\n";}
   $output = nl2br($output);
   echo $output;

Modify as necessary, etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.