Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a website on shared hosting and would like to setup another host (semi-dedicated server) and use the same domain name as the shared hosting.

Is it possible to have two separate servers share the same domain name? If so, how?


share|improve this question

migrated from Jan 7 '12 at 17:10

This question came from our site for computer enthusiasts and power users.

you will need to use subdomains – kobaltz Jan 6 '12 at 18:05

Yes, its perfectly normal and an often used scenario.

Just configure your, for example, Apache server with the same virtual host(s) on both webservers. Remember that hostname/domain is a separate thing from IP address, so server A will have one IP, server B will have another. To control which server you reach when typing the domain name you use DNS. A simple way to use both servers is to use DNS round-robin, simply point the host/domainname to both IP addresses at once.

If you want to use some kind of "failover" situation you can have DNS point at one IP at a time, and manually fail over when needed. Remember then to set the TTL (Time To Live) of the DNS entry rather low, to minimize the failover time.

For more advanced scenarios you might want to use loadbalancer setups.

Please clarify if you need further examples or information. But the short answer is, yes, its possible and often used!

share|improve this answer

Companies who do this... (mine included) make use of multiple public IPs... load-balancing appliances... sub-domains like vs and/or reverse-proxies which would proxy requests for to another server of your choosing.... or some combination of each one. What works for you is really up to what you need.

share|improve this answer

Yes, this is possible. Sites like google, IBM and Microsoft use many, many machines to service requests. Of course your shared hosting provider may or may not support this for you.

Allowing multiple machines to participate in the domain is handled by DNS and needs to be setup on your DNS Server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.