Host Your Own Website and DNS Server – Complete Guide

dnslinuxUbuntuwebserverwindows

I pay big money yearly for all of my website hosting, domain registrars, etc.

My IP is dynamic and my provider allows different http ports. On my local webserver, I have access to my websites like this: localhost:80 – first website, localhost:81 – second website .. etc.

What I want to do is to host low traffic websites (such as company pages, etc) from my own computer, and reduce all the costs that I mentioned above.

Questions:

1) Is it possible to host my own DNS server and multiple websites (from multiple local ports) even with a dynamic IP?

Or should I buy a dynamic DNS service like DynDNS, NO-IP?

Note: You can give solution with any OS (Linux, Windows doesn't matter, I'm ready to install).

2) Let's say I have a static IP. I want to host a webserver and DNS server from my own PC. I registered a domain name with a registrar like Godaddy, etc. What do I need to do next?

Thanks in advance.

Best Answer

My only advice is NEVER host company websites from your home no matter how low the traffic is. I'd rather choose the following options to host low traffic sites such as:

Or, just subscribe a single Linode 512 which will only cost you USD 19.95 a month and setup your virtual hosts for all your sites. YMMV.

For hosting the DNS, you can create free accounts from HE or FreeDNS. YMMV.

Related Question