AlpineWeb Home
Search: For:   ~ Advanced Search  
  Support Home     Documentation     Knowledgebase     Help Desk     Blog 
Support Home > Hosting > VPS2/3 > Webserver > CGI > Library > Sunday, July 20, 2008

VPS v2 CGI Library: whois


A very nice addition to the web site of a company which specializes in web hosting is an InterNIC Whois database query. A small form and simple CGI can be designed to facilitate such a task.

Installation

To install the query CGI on your Virtual Private Server you will need to do the following:
  1. Download the Query Form
    You will need to download the Internic Database Query form HTML 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. Copy the whois directory
    As the root user, copy the whois directory from the /usr/local/share/contrib/ directory on your VPS v2 to the appropriate cgi-bin for the domain that will be using the script. Make sure to change the file ownership to the correct user.
  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.

Example

Once you have completed the installation successfully, you will have a working query form like the one shown below (go ahead and test it).
InterNIC Database Query
Use the following form to perform a query exclusively on the InterNIC database (which includes the .com, .net, and .org top level domain names). Not only can you determine whether a domain name you desire is already in use, but you can find contact names, e-mail addresses, postal addresses, and telephone numbers. Simply enter the appropriate identifier (such as a domain name, NIC handle, etc) in the entry field below and select the Query button.


The default action (unless directed otherwise by entering a specific domain name or NIC handle), is to do a very broad search, looking for matches in all types of records and most fields (name, nickname, hostname, net address, etc) in the database. For more information, enter help in the entry field above and select the Query button.

Technical Support
° Getting Started Guides
  FreeBSD
° Basic Hosting Help
° Signature Hosting Help
° VPS v1 Help
° VPS v2/3 Help
° MPS v2/3 Help
  Linux
° VPS v3 Help
° MPS v3 Help
  SaaS
° Sugar CRM
  DNS
° Domain Name Service
° Domain Registration
° Help Desk
° Knowledgebase
° Support Policies
° Disclaimer

° AlpineWeb Home
° Compare Hosting Plans
° Network Topology

° Rates & Fees
° Order Center




  Home | Site Map | Customer Backroom Copyright  ©  1997-2008  AlpineWeb Design