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

VPS2 CGI Library: TTL Tool


After you modify your Domain Name Service (DNS) information, you will want to have both sites active for a period equivalent to the time to live (TTL) information for your domain name. The TTL is the amount of time that the current domain name information remains in Internet Name Server caches. To avoid any downtime do not cancel the current hosting service until after a time equivalent to the TTL has elapsed. A quick way to check TTL information is to use the TTL tool. You can interface with this tool using a FORM element such as is shown below:
<form method=POST action="/cgi-bin/library/tts/ttl.pl">
<input name="name" size=24 maxlength=72>
<input type="submit" value="Check TTL">
</form>

Installation

Copy the tts 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. Connect to your VPS v2 server via SSH, su to root, and run the following command using the correct path to the cgi-bin:
# cp -rf /usr/local/share/contrib/tts /PATH/TO/CGI-BIN
Make sure to change the file ownership to the correct user.

Specify the return email address for messages created by the Domain Name Modification Template Generator. Do this by substituting the email address for INSERT YOUR E-MAIL ADDRESS HERE in the /www/cgi-bin/tts/nsi-modify.pl file.
#

# from whom does the email template get mailed

#

$from = "INSERT YOUR E-MAIL ADDRESS HERE";
Be sure to place a \ character before the @ sign in the email address, such as:
$from = "youremail\@example.com";

Customization

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 so the CGI outputs pages that are in synch with the motifs of the rest of your site.


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