Whois CGI

The Whois CGI script queries the InterNIC databases for DNS information on .com and .net domains.

NOTE: the whois script ONLY works for Top Level Domains serviced by the InterNIC. The iwhois script is designed to query other TLD registrars in addition to the InterNIC's root name servers.

Installation

To install the query CGI on your Virtual Private Server you will need to do the following:

  1. Download the Query Form

    Download the Internic Database Query HTML form source and store it somewhere in your ~/www/htdocs directory structure. Feel free to customize the form, add graphics, etc., but be sure that the variable name for the input field is not altered.

  2. Install the Query CGI

    Connect to your Virtual Private Server via SSH or Telnet and run the following command:

    % vinstall whois

    This will install the query.pl and util.pl files in your www/cgi-bin/library/whois directory.

  3. Customize the Appearance of the Query CGI

    Two subroutines in the util.pl file are used to print out header and footer information. These functions are print_header_info and print_footer_info. Feel free to modify these functions such that the CGI outputs pages that are in synch with the motifs of the rest of your site.