Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-11-2012, 07:53 AM   #1
Registered: Jun 2006
Location: Venezuela
Distribution: A Lot
Posts: 40

Rep: Reputation: 15
Smile Webhosting solutions

Hi everybody,

I have a few questions about a small web hosting business. It is my intention to build a good web hosting solution but I have doubts about it.

First, the load balancing solution: Which would be the best load balancing solution? Layer 4 (LVS) or Layer 7 (haproxy) or a combination of those above?

Second, the DNS part: I know the basic thing about DNS but I don't finish to understand how would a new client can register his new DNS and that register would be published to the internet world!. How the companies do that?. Because I could have a DNS server and make a new register into it. And my DNS server can forward to the outside world but how the outside or internet could know my new registry?. It's a little difficult to explain my doubts.. for example. Imaging that my DNS server is, and my client wants to register a knew dns for his company I may register his company in my DNS but.. and this is my doubt.. HOW THE INTERNET WORLD WOULD KNOW?...

Third and Last one is, The software for clients. there are many of them. what is your opinion about ISPConfig v3?...

Hope Anyone can answer... and thanks!!!
Old 05-15-2012, 12:24 AM   #2
Andy Alt
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian32 stable, LFS 7.1
Posts: 390

Rep: Reputation: 44
Virtual Hosting sounds like the answer you're looking for.
Old 07-05-2012, 05:45 PM   #3
Registered: Dec 2011
Posts: 32

Rep: Reputation: 8
Well in general I would caution anyone from starting a company where they did not have an existing in-depth understanding. I've put some words in bold that you should be able to search for more information.

First let me suggest that you shouldn't really have to worry about load-balancing if you are serving small to medium sized business web sites. One Apache server should be able to handle many websites by using virtual host. You just need a plan for what to do if one of those sites starts getting way to much traffic. For a small web host you could redirect a website to different (or multiple) servers using DNS. Its possible to put the TTLs down to 15 minutes on domains you run so you can move things quickly.

My suggestion for DNS that you are directly running on your DNS severs should look like this;

@  IN   A
www    IN    A
Or if you needed to spread the load around you could do this to give you round robin load-balancing;

@  IN   A
@  IN   A
www    IN    A
www    IN    A
For you second question DNS is a Tree based structure starting with a "." you never see... so right now you are at "" that final . is called the root zone and Cashing DNS server need a hints file to know how to reach it. If a cashing DNS server was trying to look up this site (and had nothing in its cash yet) it would first talk to the root servers and they would refer the server to the .org servers by giving it the NS records and A records for the .org. server. These are called glue records. The org servers would respond in the same way. Until the cashing DNS server reached a server that responded with the address for This can be seen really well by running a DNS tool distributed with the BIND DNS server called dig.

[reachus@**** ~]$ dig +trace

; <<>> DiG 9.8.3-P1-RedHat-9.8.3-2.P1.fc16 <<>> +trace
;; global options: +cmd
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
.                       516955  IN      NS
;; Received 504 bytes from in 792 ms

org.                    172800  IN      NS
org.                    172800  IN      NS
org.                    172800  IN      NS
org.                    172800  IN      NS
org.                    172800  IN      NS
org.                    172800  IN      NS
;; Received 442 bytes from in 799 ms     86400   IN      NS     86400   IN      NS     86400   IN      NS     86400   IN      NS     86400   IN      NS
;; Received 219 bytes from in 124 ms 1440    IN      A     86400   IN      NS     86400   IN      NS     86400   IN      NS     86400   IN      NS     86400   IN      NS
;; Received 155 bytes from in 105 ms
So either your customers would need to register their own domain names and have the register point the domain to your DNS servers. (Customers would need the Name server names like and the IP address associated to it as well.)
Your customers could control and manage their own DNS pointing to the IP address(es) of the web servers you want to use for their site(s).

For more information;

Just remember that you need to keep a very close eye on usage (CPU, MEMORY, BANDWIDTH, and DISK SPACE just to name a few.) You need to be able to predict when you are going to run out... so you need to know how much a new customer is going to use and how fast existing customers are growing. I would recommend you find a way to graph this information and make sure you look at it AT LEAST once a week and ensure that it alarms if it goes past a thresh hold that is before everything comes crumbling down.

Two servers in two different locations both running BIND and APACHE should get you near to ready.

Some other thoughts;
You need to make sure that any changes to the websites happen on both servers maybe use RSYNC?
You need to monitor the capacity it may be worth paying some one to do it for a small number of servers.
As far as the software for the clients... ask your potential clients, they may not give you the names of software packages but you need to have some requirements.

Hope this help you!
1 members found this post helpful.


dns, isp, ispconfig, loadbalance, web

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What can we do with an Webhosting SQL? frenchn00b Programming 9 04-10-2009 10:50 PM
LXer: Covalent Technologies and Chariot Solutions Deliver Complete Solutions LXer Syndicated Linux News 0 05-05-2006 09:03 AM
WebHosting worldgnat Linux - Networking 2 04-30-2006 10:33 AM
Webhosting Help DragonHrt Linux - Newbie 1 03-27-2003 12:53 AM
Webhosting Help DragonHrt Linux - Software 3 03-26-2003 09:30 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration