How to setup dynamic DNS (DDNS)

This how-to works on my configuration and may on other similar configurations

	- TonidoPlug2
	- TimeWarner Roadrunner network service
	- Dlink DIR615 router

End Result will be up to 4 HTTP paths to access your plug
	- RELAY through TONIDOID.COM
		waffles.tonidoid.com
	- NON-RELAY using DDNS bypassing TONIDOID.COM
		cloud.waffles.com (arguably slightly faster "direct" access)
	- NON-RELAY using hard-coded IP address
		cloud2.waffles.com (hard-code DNS URL redirect ... see "for the fun loving crown")
	- Local network
		192.168.0.100:10001 (or whatever your device is)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Configure your plug
	
	- turn off the relay service under "settings" / "network"
	- turn on the "enable non-relay port forwarding" on same setting page
	(UPDATE)
	- in reality, you can leave relay on ... this gives you both relay and non-relay access to your plug
	  if you intend to use a mobile phone app, you MUST leave relay on

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2. Configure your router

	- login to your router
	- find the "port forwarding" or "virtual server" section (i used virtual server but either will work)
	- enter or select HTTP for the application
	- enter the IP address of the tonido plug (mine is 192.168.0.100)
		* optional but suggested: go to the DHCP section of and 
		  make the lease on your tonido's address never expire
	- enter a public port of 80, and a private port of 10001
	- enter or select the TCP protocol
	
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3. Determine your cable-modem's IP address (i.e. your current IP address provided by your ISP / outside address)

	OPTION 1:	simply google (with or without quotes) "what is my ip address"
	OPTION 2:	goto http://www.whatismyipaddress.com
	OPTION 3:	login to either your router or cable modem and get it from there
	
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4. Setup your router to update to a DDNS service

	* DDNS services are nothing more than redirectors that keeps track of your cable modem's current IP address 
		... that's it nothing else ... no data is routed through them
		... it's a a simple address cross-reference/lookup service
		(frankly, i think tonido needs to offer this as an alternative to the fullblown relay service)

	- most if not all newer router support DDNS
	- if your router doesn't support DDNS, you need to either buy a new one or 
	  use an always-on PC to make this happen
		(scratch that - just make it easy on yourself and buy a new router)
	- login to the router and find the section for DDNS
	- choose a DDNS provider the router supports or enter one manually if allowed
	- if it's a dlink router, i recommend and use dlinkdns.com - it's a FREE, super easy to config, 
	  front-end to dyndns.com
	- leave this setup page open

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5. Setup a DDNS service
	
	- browse to the DDNS service provider's web page that you selected
	- create an account
	- provide a host name
		... host name??? huh??? for example:  mycoolhostname.dlinkdns.com   - or -   waffles.dlinkdns.com
	- it will probably already know your IP address but if not, enter it from section 3 above
	- if it asks for an address to start with, enter the same address again
	- once you submit this, starting IMMEDIATELY, any browser visit to "waffles.dlinkdns.com" will 
	  redirect the visitor to the IP address (of your modem) that is on file

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6. Back to the setup page you left open in section 4

	- now you need to enter the full host (i.e. waffles.dlinkdns.com) and 
	  your username and password to the DDNS service
		(this allows the router to periodically send to the DDNS service your current 
		 outside IP address... the DDNS service updates it's table with whatever it 
		 is so WAFFLES.DYNDNS.COM always finds its way back to your modem & router)
	- since by default, your web browser is really going to:  waffles.dlinkdns.com:80   
		the "80" is the port that we redirected to your tonido plug's HTTP service
		this is why the port forwarding / virtual service piece is key ... router reads port, 
		points traffice to internal 192.168.0.100:10001 in my case
	
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7. OPTIONAL: Friendly up your web address (i.e.  make cloud.waffles.com = waffles.dlinkdns.com)

	- you could stop at section 6 or if you prefer and have your own domain,
	  why not make it really easy for visitors 
	- OPTION 1 (enhance your DNS):  
		-- login to your domain control panel 
		-- in the DNS settings section, add a URL redirect entry that 
		   points cloud.waffles.com to cloud.dlinkdns.com
	- OPTION 2 (simple webpage redirector):
		-- create a subfolder called "cloud" (or whatever you like)
		-- create a file called index.htm
		-- put this in the file (replacing waffles and cloud with YOUR information)
		
		<html><head><meta http-equiv="refresh" content="0;url=http://www.waffles.com/cloud"/></head></html>


********************************
** FOR THE FUN LOVING CROWD ****
********************************
If you're a gambler, you could cut the DDNS stuff out completely.  
Simply add an entry to your DNS as a URL redirector to your router's IP address.  
It's a bit risky but at least where I live, my IP address hasn't changed ever even though it's not static.
Personally, I do both ... use DDNS and add a separate entry to your host DNS for the 
	IP address (i.e. cloud.waffles.com and cloud2.waffles.com)