Build Your Own Cloud: Part I, Set Up Your Domain Name

In this article, we outline how to build your own cloud with open source software OwnCloud (  Two components are needed to run a OwnCloud server with your home computer:

(1) A static IP or a domain name which dynamically maps to the IP your ISP assigns to you.

(2) A computer running the OwnCloud server.

The static IP or the dynamically mapped domain name is the “postal address” to find your server on the internet.  Holding a static IP is not cheap, so it is more interesting to use a dynamic IP with a domain name.  You need these:

(a)  Buy a domain name, for example, from domain registrars, such as GoDaddy, NameCheap or Google.  This usually cost about $12 a year.  With a domain name, you can add  subdomains as you like, for example, or

Here is a primary domain, and is a secondary domain.  Some registrars directly sell secondary domains attached to their specified primary domains at a lower price, such as  I do not quite like this, because TheirPrimaryDomain might be uneasy to remmember.  I prefer to have my own primary domain, with which I can extend many subdomains for many different services.

Let us assume that you decide to use, and you are going to run OwnCloud server on a computer YourServer.

(b)  Use a free or buy a Dynamic DNS host to dynamically map to the IP your ISP assigns to you.  A domain name is like the name of a company and an IP address is its “postal address”.  Because IPs are relatively scarce, most ISPs circulate IPs around its customers.  Each time an active user may receive a different IP.  When you type a domain name in your brower, your computer first asks some domain name servers to translate it to its IP.  As your IP dynamically changes, you need a domain name sever to track its change.

A Dynamic DNS tracks the change of your IP by receiving reports from your home computer or router.  If you directly connect YourServer to the internet, then you can install the client software provided by your Dynamic DNS provider on YourServer. It will automatically report changes of your IP.  If you run YourServer behind a rourter, then you shall check whether its dynamic IP reporting function is compatible with the Dynamic DNS server.  For example, I could not figure out how to make my dlink router report to namecheap.

By the way, if you use a dlink router, you can use to map one secondary domain in the format of for free.  I will discuss how to utilize this.

(c) If YourServer is behind a router, then forward ports 80 and/or 443 from the router to YourServer.  OwnCloud use port 80 to run its http interface and 443 its https interface.  As is mapped to your router, connection to will be directed to your router.  Thus, you need to tell your router to relay requests to ports 80/443 to YourServer.  If you use a dlink router, you can do it with the “Virtual Server” function.

My Example:

(1) I bought from 1and1.  By the way, they suck, I will definitely transfer to another registrar after finishing my one year term.

(2) I added subdomain for my cloud service.

(3) I tried to use namecheap’s freeDNS, so I changed the name server associated with to namecheaper.

(4) Unfortunately, my dlink router is not compatible with namecheap’s freeDNS, so I utilized’s free dynamic DNS service for dlink customers.

(4a) I got a free secondary domain name, and setup my dlink to report its IP to  dlinkddns only supports secondary domains in the format

(4b)  So fare I had two domain names: which I preferred and which I used for its free dynamic DNS. How to combine them?  I set the  cname of to

(5) I forwarded ports 80/433 from my router to MyServer inside my LAN.

The mapping chain of is: (via namecheap’s cname map) -> (via’s dynamic DNS) ->

MyRouter (via its Virtual Server function) ->


Please note that it is unnecessary to use namecheap’s freeDNS here.  I can just use 1and’s cname service, but I dislike 1and1 so much that I avoid their services as much as possible.

Some suggestions:

Choosing a good registrar will save you a lot of trouble.  Google looks to be a good provider.  They charge $12 for a year, with private registration and more importantly it includes dynamic DNS!

namecheap is good, but unfortunately they are incompatible with my dlink router. has stopped its free service, so you have to go to alternatives.

GoDaddy is popular, but they do not include dynamic DNS.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s