Jump to navigation Jump to search

5.3-Nano: DtDNS

86 bytes added, 02:15, 28 January 2010
Fix grammatical stuff and clarify meaning
'''Uniform Server and DtDNS'''
Majority The majority of domestic Internet connections are via a dynamic IP address, one that changes can change every time you connect to the Internet. This means you cannot run a web server unless you purchase a, static IP address from your ISP (Internet service provider). Even with a static IP , you require and an entry in a DNS server that converts your domain name into this IP address , allowing other users to access your server.
An alternative is to use a free service such as '''DtDNS''' they . They provide accounts that allow you to obtain a '''domain name''' , and '''tracking software''' to automatically update your IP address as when it changes. A big advantage of their free service is that they automatically enable '''Wild cards''' by default.
Uniform Server supports the DtDNS service by integrating a, '''simple PHP scripscript''' to automatically update hostname IP address at DtDNS. Script The script is configurable , allowing you to update all five free hostnames. The script can optionally be run by cron , making the whole task transparent.
'''''Note'':''' The script is portable hence , so popping the servers on a USB memory stick means you can have them on-line and accessible within ten minutes (minimum DNS propergation propagation time) if the new PC host has been configured to allow Internet server traffic.
== DtDNS account ==
Creating an account at DtDNS is extremely easy.
* To the right of '''log in''' click '''Create an Account'''
There are two pages to fill in, enter . Enter the following details:
| ||'''''Page 1'':'''|| 
|4)||'''Confirm Password'''||As above
|5)||'''E-mail Address'''||A real active e-mail is required, . An activation code is sent to this e-mail address
|6)||'''Confirm E-mail'''||As above
|7)||'''Optional'''||Skip the Optional Information section if you don't wish fill it in.
|8)||'''Two CAPCHA words'''||Enter the two CAPCHA words (if these are difficult to read click the new challenge button)
|9)||'''Username'''||Enter your Username as entered in '''1)'''.
|10)||'''Enter code'''||Enter code sent to your email. (Note: The email contains a link to page 2 , hence you can could also close the page and wait for the e-mail.)
* A hostname is concatenated with a '''domain''' name.
* I have listed available domains on the right.<br /><br />
* Your full URL , for example
** If you chose '''books''' as hostname
** And select from the drop down menu ''''''
'''''Wild Cards'':'''
After creating a hostname , wild cards are enabled by default. This allows you to use a URL such as
<nowiki>http://</nowiki>'''www.''' - Note '''www.''' is the wild card part this . This can be anything you like ; for example:
* <nowiki>http://</nowiki>www.''''''
* <nowiki>http://</nowiki>www.home.''''''
'''''' resolves to your IP address you . You can use the wild card on your server to resolve to different sites.
'''''[[#top | Top]]'''''
* Enter Password: as set in step '''3)'''
* '''My Services''' page displayed
* Click on '''Hostnames''' this . This opens the '''Hostname Manager'''
'''''Create hostname'''''
* Enter a desired '''Hostname'''
|books||||||Active Dynamic
Click a hostname link opens to open its corresponding configuration page. Here you can change various settings, including the IP address.
'''''Note'':''' After adding a new host , the IP address is set to your current IP address. You can manually change it on the configuration page or request an IP update see later.
'''''[[#top | Top]]'''''
Edit the following file: UniServer\plugins\dtdns_updater\'''dtdns.ini'''
For each account you wish to update , add a bock block with the following format.
|'''[account_1]'''||&nbsp;||- A uniquete unique name enclosed in square brackets. Can be any name you wish ; do not include spaces.
|'''hostname ='''||&nbsp;|| - Full host name as configured at DtDNS
Uncomment the blocks as required and substitute your details.
If you need extra bocks blocks, copy an existing one making sure you change the block name to something unique.
'''''[[#top | Top]]'''''
'''''Batch file'':''' UniServer\plugins\dtdns_updater\'''Run_dtdns_updater.bat'''
'''''Note'':''' It takes around ten minutes for the DNS to propagate, additional . Additional updates within this period are regarded as an abuse and you may find your IP banned.
'''''[[#top | Top]]'''''
=== Cron - Automatic update ===
Cron provides a periodic tick . Uniform Server's default is every ten minutes.
DtDNS automatic updater has been pre-configured , however it is disabled by default.
To enable DtDNS , edit file UniServer\unicon\main\'''cron.ini'''
Locate the dtdns block:
Uncomment to enable as shown below:
Optionally change the start time. If you do not change this the current time will be used.
When Cron is initially run DtDNS will immediately run and thereafter runs will run every ten minutes.
'''''Note 1'':''' An update is performed only if your IP address has changed.
'''''Note 2'':''' You need to start Cron either manually or automatically refer . Refer to [[5.3-Nano: Portable Cron | '''Cron page''']] for details.
'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
== Summary ==
For a home web server the free account at DtDNS is ideal at . At least it gives you an opportunity to test their service. Perhaps it will encourage you to purchase a real domain and use some of their paid services.
The next page looks at configuring the [[5.3-Nano: Database Backup | '''Database Backup''']] CLI script.

Navigation menu