Changes

Jump to navigation Jump to search

Coral: dtdns intro

6,268 bytes added, 13:48, 12 November 2011
Created page with "<div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font..."
<div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font-size:12px">'''''Coral'' :'''&nbsp; [[Coral: dtdns intro|DtDNS]] | [[Coral: dtdns detail|DtDNS - Detail]] | [[Coral: dtdns account|Create DtDNS Account]]</span></div>

{|style="margin-top:5px;"
|-valign="top"
|
<span style="margin-bottom:5px;font-size:25px;color: #31799F;">DtDNS - Introduction</span>

The majority of domestic Internet connections are via a dynamic IP address, one that can change every time you connect to the Internet. A web server requires a static IP address. A free dynamic DNS service such as DtDNS provides accounts and tracking software to automatically update your IP address when it changes, creating the effect of a static IP address. The Uniform Server has a built-in utility which supports the DtDNS service. This page covers the configuration sub-menu, which allows you to configure and test the DtDNS service.

__TOC__

|
{| cellpadding="0" cellspacing="0" style="margin-left:6px;margin-bottom:5px;padding-left:6px;padding-right:6px;font-size:11px;background-color: #FFFFEB;border: 1px solid darkslateblue;"
|-
|colspan="2" style="font-weight:bold;"| UniServer&nbsp;8-Coral
|-
|&nbsp;||[[Coral: Introduction|Home]]
|-
|&nbsp;||[[Coral: start quick start|Quick Start]]
|-
|&nbsp;||[[Coral: general intro|General]]
|-
|&nbsp;||[[Coral: apache intro|Apache]]
|-
|&nbsp;||[[Coral: mysql intro|MySQL]]
|-
|&nbsp;||[[Coral: php intro|PHP]]
|-
|&nbsp;||[[Coral: msmtp intro|MSMTP]]
|-
|&nbsp;||[[Coral: cron intro|CRON]]
|-
|<span style="font-size: 14px;">ยป</span>||[[Coral: dtdns intro|DtDNS]]
|-
|&nbsp;||[[Coral: dbbackup intro|Db Backup]]
|-
|&nbsp;||[[Coral: perl intro|Perl]]
|-
|&nbsp;||[[Coral: index main|Main Index]]
|}
|}

==Edit DtDNS Accounts==
{|
|-valign="top"
|
<span style="padding:6px;background-color:#99FFFF"> Server Configuration > DtDNS > Edit DtDNS Accounts</span>

For each account you wish to update at DtDNS add a block with the following format:

{|
|-
|'''[account_1]'''||-|| A unique name enclosed in square brackets. Can be any name you wish do not include spaces.
|-
|'''hostname =''' ||-|| Full host name as configured at DtDNS
|-
|'''password =''' ||-|| Your DtDNS account password
|}
An extract from the configuration file (dtdns.ini) is shown on the right.

* Add as many blocks as required.
* To use the examples uncomment (remove the ;) and substitute your data as appropriate.
|
<pre>
;#################################

;[account_1]
;hostname = books.effers.com
;password = fred123

;[account_2]
;hostname = books.effers.net
;password = fred123

;[account_3]
;hostname = books.dtdns.net
;password = fred123

;=== END Config ==================
</pre>
|}

'''''[[#top | Top]]'''''
==Force DtDNS UpDATE==

<span style="padding:6px;background-color:#99FFFF"> Server Configuration > DtDNS > Force DtDNS UpDATE </span>


Runs the Uniform Server DtDNS update script. A conformation pop-up is produced "DtDNS was manually updated View log for details."

'''''[[#top | Top]]'''''
==Enable Log==

Logging is enabled by default you can turn logging off using this menu option. The DtDNS script is open in Notepad.

{|
|-valign="top"
|
<span style="padding:6px;background-color:#99FFFF"> Server Configuration > DtDNS > Enable Log</span>


To disable logging change the following line as shown:

* logging = false

Extract from script (dtdns_updater.vbs) is shown on the right.
|
<pre>
'*** User configuration *****************************************

logging = true 'true = Enable logging false = disable logging
test = false 'true = display IP address and host names
'false = no display

'************************************** End User configuration ***
</pre>
|}

'''''[[#top | Top]]'''''
==View Log==
{|
|-valign="top"
|
<span style="padding:6px;background-color:#99FFFF"> Server Configuration > DtDNS > View Log </span>


This menu option displays the DtDNS log file in Notepad. Each updater run produces an entry in the log file. An example of one run is shown on the right.
|
<pre>
18/07/2011 22:42:18 ### Log Started =========================================
18/07/2011 22:42:25 Changed IP from: xx.x10.165.92 To xx.x10.160.158 books.dtdns.net
18/07/2011 22:42:31 Changed IP from: xx.x10.165.92 To xx.x10.160.158 books.effers.com
18/07/2011 22:42:36 Changed IP from: xx.x10.165.92 To xx.x10.160.158 fredxx.dtdns.net
18/07/2011 22:42:36 ### Log Ended ===========================================
</pre>
|}

'''''[[#top | Top]]'''''
==Enable in CRON==
Every time you start your PC and reconnect to the Internet (given a new IP address) you need to manually run the DtDNS updater.


Remembering to manually run scripts like '''DtDNS''' becomes a chore. Uniform Server centralises running this type of script using portable Cron. Cron is started either manually (portable) or run as a service. It periodically executes a list of scripts; the DtDNS script is included and requires enabling as follows:

{|
|-valign="top"
|
<span style="padding:6px;background-color:#99FFFF"> Server Configuration > DtDNS > Enable in CRON </span>


Opens Cron configuration file in Notepad

* Locate section shown on right
|
<pre>
;[dtdns]
;start = 2011-04-7 13:20:00
;period = 600 ; 10 Mins as required by DtDNS
;path = C:\UniServer\uni_con\dtdns_updater\Run_dtdns_updater.bat
;ref =
</pre>
|-valign="top"
|
Enable pre-configured DtDNS section in Cron as follows:

* Un-comment four lines as shown on right.
|
<pre>
;[dtdns]
start = 2011-04-7 13:20:00
period = 600 ; 10 Mins as required by DtDNS
path = C:\UniServer\uni_con\dtdns_updater\Run_dtdns_updater.bat
ref =
</pre>
|}

'''Note:''' You can change the start time and period to suite your own requirements see [[Coral: cron intro#Configuration file|Cron Configuration file]] for details.

'''''[[#top | Top]]'''''

==Where to go next==

[[Coral: dtdns detail|DtDNS - Detail]] <br />
[[Coral: dtdns account|Create DtDNS Account]] <br />
[[Coral: cron intro#Run Cron as a program|Run Cron as a program]] <br />
[[Coral: cron intro#Run Cron as a service|Run Cron as a service]]

----

[[Category: Uniform Server 8-Coral]]

Navigation menu