dnsmasq.cgi - Generate web page of hostnames from /etc/hosts and dhcpd.leases

Use in conjunction with the dnsmasq DNS server.  Reads /etc/dnsmasq.conf for
most of its configuration.  Generates a hostname list, also determines if
each host is reachable (ping) and if it has a web server listening on TCP
port 80 (makes the hostname a link).

Unpack, then drop in a directory from which your router's web server can 
deliver cgi-bin scripts.  Requires dnsmasq, Perl 5 or greater, and a working 
ping program.

When making entries in /etc/hosts, put the simple hostname first, then the 
fully qualified domain name:

192.168.1.1	caliente	caliente.local

DHCP hosts should be passing their client-hostname to dhcpd.  Maybe more
WAPs, routers, and other appliance-type devices will do this in the
future...

The ping command options can be modified in the $ping variable at the top of
the program.  The distributed configuration works with SuSE Linux 8.1.  ping
and the subsequent check for TCP port 80 will make this program progressively
slower as you add more hosts to your network.

Forward problems or comments to me at glenn_butcher@pcisys.net.

4/20/2003
