Hi Gang,
FYI I have been using a neat little script called Network Query Tool on my
home e-smith box for sometime and thought that I would pass the info on to
the group.
This is a PHP script and works great in an IBAY with cgi/php turned on, or
in the primary with the e-smith php updates. It also integrates well with
other web software. Basically it's functions are:
Reverse lookup - converts an IP to a hostname (if one exists) or vice versa
DNS query - aka DiG, requires that the dig command work on your system
Whois (WWW) - gets domain registration information. Supports .com, .net,
.org, .edu. I may add support for other TLDs in the future, or you could
always add them in yourself.
Whois (IP) - gets IP owner information. Supports all IP blocks maintained by
ARIN (US), RIPE (Europe), JPNIC (Japan), APNIC (China/Asia-Pacific), and
REG-BR (Brazil).
Check port - See if a port on the target host is open. Defaults to port 80.
Ping - does a 5-packet ping to the target.
Traceroute - completes a traceroute to the target.
You can also select tasks individually if you don't need (or don't want to
wait for) all of the information. The traceroute command, in particular, can
take awhile to finish. If you want to disable it so that it's never
performed, just comment out the call to the tr() function near the bottom of
the script.
The ping, traceroute, and dig functions are performed using those commands
on your server. The WWW whois, IP whois, and check port functions are done
directly through sockets.
Operational Examples on my home machine
http://www.wa4bro.net/mynqt.phpIntegrated in myphpnuke
http://www.wa4bro.net/incoming/nqt.phpOperating from Ibay
Download from Author's site:
http://shat.net/php/nqt/I have found that I use this little script from my client machines quite
often. The Traceroute can sometime slow the script if the path is dead or
network slow. You can disable it if you wish.
Have Fun
Dan
dan-AT-wa4bro.net