how do web hosts do this?

Ok for the past few years i have been running a redhat server, hosting sites personally for friends and such, basically non-profit.

its only a small operation, like 20 domains, few email addresses and subdomains on each domain, about 3 mysql databases in each acount, etc

anyway, i want to take this further, and start a small hosting company. Because since i have started, i have really enjoyed managing the server, keeping it up to date, and so on.

anyway, this is my question, say you had 4 servers, at a datacenter, and they were called

srv1.domain.com, srv2.domain.com, srv3.domain.com and srv4.domain.com. Well, do web hosting companies usually run a dns server on just one of the servers, then have a few seperate servers which all run web/ftp/mysql etc

or, do they run a dns server on each of the servers

because i have been looking into this, and if you run a dns server on just one of the servers, then how do you get the control panels on the other servers to update dns records on the dns server??

like say you were hosting someone on srv2.domain.com and they added a couple of subdomains, you wouldn't be able to get the control panel to update the dns on srv1.domain.com because its a seperate machine.

so then i thought, maybe webhosts run dns servers on each of their servers, which handles the dns requests for all the domains handled by that individual server.

but then that means that each server would need 2 ip addresses, and would mean that if you had 5 servers, that would mean you would have all the following name servers:

ns1.domain.com
ns2.domain.com
ns3.domain.com
ns4.domain.com
ns5.domain.com
ns6.domain.com
ns7.domain.com
ns8.domain.com
ns9.domain.com
ns10.domain.com

thats allot of name servers.

so i dont really get how its done. is there just one name server used to handle the dns for all the other servers in the datacenter, or do you run a dns server on all of your servers

if you run just one, how would you get the control panel to update the dns records remotly? and if you run a dns server on all the servers you have, how do you prevent loads of name servers

thanx

 

 

 

 

Top