DNS2Go Perl Client

Article Details
URL: https://support.deerfield.net/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=243
Article ID: 243
Created On: Aug 19, 2004 11:41 AM

Answer DNS2Go

DNS2Go Perl Client

Note: The perl client can only update your domains IP address and cannot set any other online or offline settings.

  1. Before you can use the perl client, you must download and install the perl executable. This can be downloaded from the following site:
         http://www.perl.com/download.csp
    Mac users please follow this link as the perl app is already included in OSX http://ftp.deerfield.net/pub/dns2go/perl/dns2goperl-mac.zip
    If you already have the perl file, make sure that you have at least version 5.6. If you have any version below 5.6 you will need the libwww-perl module.
  2. Edit the dns2go.pl file and change the following strings:
         $DNS2GoDomain = 'yourdomain.dns2go.com';
         $DNS2GoKey = '001153-ABCDE-FGHJI-123456';
  3. Save this file and then run the online.pl file. This can be done from a command prompt by typing the following:
         perl online.pl

    This will start the client and update your domain with your current IP address.
    If you want to set a static IP address instead of the client automatically updating with your current IP address, edit the online.pl file.

    Use this line to auto-detect your IP

    $result = DNS2GoUpdate( $DNS2GoDomain, $DNS2GoKey, 1 );


# Use this line to specify an IP
#
#$result = DNS2GoUpdate( $DNS2GoDomain, $DNS2GoKey, 1, '192.168.0.1' );

Insert a '#' in front of the first $result line and remove the '#' from the second so that the file looks as follows:



# Use this line to auto-detect your IP

#$result = DNS2GoUpdate( $DNS2GoDomain, $DNS2GoKey, 1 );



# Use this line to specify an IP
#
$result = DNS2GoUpdate( $DNS2GoDomain, $DNS2GoKey, 1, '192.168.0.1' );

Replace 192.168.0.1 with the IP address that you want to update your domain with.

  1. To stop the client, simply run the offline.pl file or type:
         perl offline.pl