5.0-Nano: DtDNS: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://ekygelymib.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
----
=[http://ekygelymib.co.cc CLICK HERE]=
----
</div>
{{Nav 5.0-Nano}}
{{Nav 5.0-Nano}}
'''Uniform Server and DtDNS'''
'''Uniform Server and DtDNS'''
Line 19: Line 27:
There are two pages to fill in, enter the following details:
There are two pages to fill in, enter the following details:
{|
{|
|&nbsp;||'''''Page 1'':'''||&nbsp;
|&amp;nbsp;||'''''Page 1'':'''||&amp;nbsp;
|-
|-
|1)||'''Desired Username'''||This name is used for logging into your '''account'''
|1)||'''Desired Username'''||This name is used for logging into your '''account'''
Line 37: Line 45:
|8)||'''Two CAPCHA words'''||Enter the two CAPCHA words (if these are difficult to read click the new challenge button)  
|8)||'''Two CAPCHA words'''||Enter the two CAPCHA words (if these are difficult to read click the new challenge button)  
|-
|-
|&nbsp;||'''''Page 2'':'''||&nbsp;
|&amp;nbsp;||'''''Page 2'':'''||&amp;nbsp;
|-
|-
|9)||'''Username'''||Enter your Username as entered in '''1)'''.
|9)||'''Username'''||Enter your Username as entered in '''1)'''.
Line 49: Line 57:
'''''General information'':'''
'''''General information'':'''
{|
{|
|-valign="top"
|-valign=&quot;top&quot;
|
|
*A DtDNS account is limited to '''five free''' hostnames.
*A DtDNS account is limited to '''five free''' hostnames.
* A hostname is concatenated with a '''domain''' name.
* A hostname is concatenated with a '''domain''' name.
* I have listed available domains on the right.<br /><br />
* I have listed available domains on the right.&lt;br /&gt;&lt;br /&gt;
* Your full URL for example
* Your full URL for example
** If you chose '''books''' as hostname
** If you chose '''books''' as hostname
Line 60: Line 68:
Will look like this:
Will look like this:


'''<nowiki>http://</nowiki>books.effers.com'''     
'''&lt;nowiki&gt;http://&lt;/nowiki&gt;books.effers.com'''     
|
|
&nbsp;&nbsp;
&amp;nbsp;&amp;nbsp;
|
|
{|
{|
Line 69: Line 77:
|-
|-
|
|
<pre>
&lt;pre&gt;
3d-game.com
3d-game.com
4irc.com
4irc.com
Line 79: Line 87:
dtdns.net
dtdns.net
effers.com
effers.com
</pre>
&lt;/pre&gt;
|
|
<pre>
&lt;pre&gt;
etowns.net
etowns.net
etowns.org
etowns.org
Line 91: Line 99:
suroot.com
suroot.com


</pre>
&lt;/pre&gt;
|}
|}
|}
|}
Line 98: Line 106:
After creating a hostname wild cards are enabled by default. This allows you to use a URL such as  
After creating a hostname wild cards are enabled by default. This allows you to use a URL such as  


<nowiki>http://</nowiki>'''www.'''books.effers.com - Note '''www.''' is the wild card part this can be anything you like for example:
&lt;nowiki&gt;http://&lt;/nowiki&gt;'''www.'''books.effers.com - Note '''www.''' is the wild card part this can be anything you like for example:


* <nowiki>http://</nowiki>www.'''books.effers.com'''
* &lt;nowiki&gt;http://&lt;/nowiki&gt;www.'''books.effers.com'''
* <nowiki>http://</nowiki>www-internation.'''books.effers.com'''
* &lt;nowiki&gt;http://&lt;/nowiki&gt;www-internation.'''books.effers.com'''
* <nowiki>http://</nowiki>local.'''books.effers.com'''
* &lt;nowiki&gt;http://&lt;/nowiki&gt;local.'''books.effers.com'''
* <nowiki>http://</nowiki>www.home.'''books.effers.com'''
* &lt;nowiki&gt;http://&lt;/nowiki&gt;www.home.'''books.effers.com'''


'''books.effers.com''' resolves to your IP address you can use the wild card on your server to resolve to different sites.
'''books.effers.com''' resolves to your IP address you can use the wild card on your server to resolve to different sites.
Line 128: Line 136:
To manage existing hostnames, simply click the entry in the list for example see below.
To manage existing hostnames, simply click the entry in the list for example see below.


{|cellspacing="6"
{|cellspacing=&quot;6&quot;
|-
|-
|'''Hostname'''||'''Domain'''||'''IP Address'''||'''Type'''
|'''Hostname'''||'''Domain'''||'''IP Address'''||'''Type'''
Line 148: Line 156:
In the user configuration section locate these lines:
In the user configuration section locate these lines:


* $id_pw[] = "'''books.effers.com''','''fred123'''";  // Change
* $id_pw[] = &quot;'''books.effers.com''','''fred123'''&quot;;  // Change
* $id_pw[] = "'''books.effers.com''','''fred123'''";  // Change or delete
* $id_pw[] = &quot;'''books.effers.com''','''fred123'''&quot;;  // Change or delete
* $id_pw[] = "'''books.effers.com''','''fred123'''";  // Change or delete
* $id_pw[] = &quot;'''books.effers.com''','''fred123'''&quot;;  // Change or delete
Substitute '''books.effers.com''' with your real host and domain names, replace the password '''fred123''' with the one you set in step 1)
Substitute '''books.effers.com''' with your real host and domain names, replace the password '''fred123''' with the one you set in step 1)


Line 158: Line 166:
|-
|-
|
|
<pre>
&lt;pre&gt;
<?php
&lt;?php
/*
/*
###############################################################################
###############################################################################
Line 172: Line 180:


chdir(dirname(__FILE__)); // Change wd to this files location
chdir(dirname(__FILE__)); // Change wd to this files location
include_once "../../unicon/main/includes/config.inc.php";
include_once &quot;../../unicon/main/includes/config.inc.php&quot;;
include_once "../../unicon/main/includes/functions.php";
include_once &quot;../../unicon/main/includes/functions.php&quot;;


run_location_tracker();  // Have servers moved if moved update configuration
run_location_tracker();  // Have servers moved if moved update configuration
print"\n";
print&quot;\n&quot;;


//######################## User Configuration #################################
//######################## User Configuration #################################
// Add as many lines as required with the following format:
// Add as many lines as required with the following format:
//  $id_pw[] = "hostname,password";
//  $id_pw[] = &quot;hostname,password&quot;;
// For example:
// For example:
// $id_pw[] = "books.effers.com,fred123";
// $id_pw[] = &quot;books.effers.com,fred123&quot;;
// $id_pw[] = "power.dtdns.net,gun22powder";
// $id_pw[] = &quot;power.dtdns.net,gun22powder&quot;;
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------


$id_pw[] = "books.effers.com,fred123";  // Change
$id_pw[] = &quot;books.effers.com,fred123&quot;;  // Change
$id_pw[] = "books.effers.com,fred123";  // Change or delete
$id_pw[] = &quot;books.effers.com,fred123&quot;;  // Change or delete
$id_pw[] = "books.effers.com,fred123";  // Change or delete
$id_pw[] = &quot;books.effers.com,fred123&quot;;  // Change or delete


//###################### END User Configuration ###############################
//###################### END User Configuration ###############################
Line 196: Line 204:


foreach ($id_pw as $value) {                        // Iteratate through array
foreach ($id_pw as $value) {                        // Iteratate through array
   $idpw_array = explode(",",$value);                // Split id pw pairs
   $idpw_array = explode(&quot;,&quot;,$value);                // Split id pw pairs


   if(get_ip_dns($idpw_array[0])){                  // Was IP from DNS returned
   if(get_ip_dns($idpw_array[0])){                  // Was IP from DNS returned
Line 202: Line 210:


       if($test){ // Test code
       if($test){ // Test code
       print "DNS IP = $ip_dns CURRENT IP = $ip_current $idpw_array[0]<br/>\n";
       print &quot;DNS IP = $ip_dns CURRENT IP = $ip_current $idpw_array[0]&lt;br/&gt;\n&quot;;
       }
       }


Line 242: Line 250:


// Build complete URL
// Build complete URL
$str= $url."?id=".$id_val."&pw=".$pw_val."&client=".$client_val;
$str= $url.&quot;?id=&quot;.$id_val.&quot;&amp;pw=&quot;.$pw_val.&quot;&amp;client=&quot;.$client_val;


// Access page using Curl SSL
// Access page using Curl SSL
Line 254: Line 262:


// Test returned page  
// Test returned page  
if(preg_match("/now\spoints\sto/",$buffer)){// Is returne value "now points to"
if(preg_match(&quot;/now\spoints\sto/&quot;,$buffer)){// Is returne value &quot;now points to&quot;
  return true;                              // yes: update OK
  return true;                              // yes: update OK
}
}
Line 262: Line 270:
}
}
//============================================== END DtDNS Host Update Page ===
//============================================== END DtDNS Host Update Page ===
?>
?&gt;
</pre>
&lt;/pre&gt;
|}
|}
'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 275: Line 283:


Contains:
Contains:
<pre>
&lt;pre&gt;
COLOR B0
COLOR B0
@echo off
@echo off
Line 289: Line 297:
popd
popd
EXIT
EXIT
</pre>
&lt;/pre&gt;
'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
=== Cron - Automatic update ===
=== Cron - Automatic update ===
Line 299: Line 307:


Locate these two line in section '''List of scripts to be run'''
Locate these two line in section '''List of scripts to be run'''
<pre>
&lt;pre&gt;
   // $cmd = 'start ..\..\usr\local\php\php-win.exe ..\..\plugins\dtdns_updater\dtdns_updater.php';
   // $cmd = 'start ..\..\usr\local\php\php-win.exe ..\..\plugins\dtdns_updater\dtdns_updater.php';
   // pclose(popen($cmd,'r'));            // Start detatched process   
   // pclose(popen($cmd,'r'));            // Start detatched process   
</pre>
&lt;/pre&gt;
and uncomment as shown below
and uncomment as shown below
<pre>
&lt;pre&gt;
   $cmd = 'start ..\..\usr\local\php\php-win.exe ..\..\plugins\dtdns_updater\dtdns_updater.php';
   $cmd = 'start ..\..\usr\local\php\php-win.exe ..\..\plugins\dtdns_updater\dtdns_updater.php';
   pclose(popen($cmd,'r'));            // Start detatched process   
   pclose(popen($cmd,'r'));            // Start detatched process   
</pre>
&lt;/pre&gt;
'''''Notes'':'''
'''''Notes'':'''
* When the server is first started Cron is run and the IP addreess updated if different
* When the server is first started Cron is run and the IP addreess updated if different
322

edits