Two Web Servers Hosting Same Domain

Hello Experts,

I have IIS running on a Win2K3 box that's hosting two domains using host headers. I'm working on a failover in case this main web server is down. I have made a replica of the web server that's offsite and planning to use ftp for file synchronization between the two.  I was wondering if I could leave all the host headers for the domains on both servers so if one goes down the failover will kick in using the same domain name(s)? I guess my question is if it's possible to host the same domain name on different hosts? Will this be a problem if both are live web servers and pointing to the same domain when someone types in the domain name in the browser...hope this makes sense. Thanks!
LVL 1
tracymsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
There's no problem having two servers configured like that - the problem is, DNS can only point to one web server... so you would have to edit DNS and potentailly wait a day or two for the changes to propagate over the internet.  The only way this could really work is if you can set the offsite server to the same IP - which is not typically possible for a variety of reasons.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lee W, MVPTechnology and Business Process AdvisorCommented:
There's no problem having two servers configured like that - the problem is, DNS can only point to one web server... so you would have to edit DNS and potentailly wait a day or two for the changes to propagate over the internet.  The only way this could really work is if you can set the offsite server to the same IP - which is not typically possible for a variety of reasons.
0
tracymsAuthor Commented:
Thanks for the quick response, so to reiterate what you have said - its possible. If the main server is down and I have DNS failover pointing to the backup, it should be fine?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

ahoffmannCommented:
mainly DNS issue as leew explained
or you place a one load balancer in front of both web servers, then your DNS points to the load balancers IP while the load balancer forwards the traffic as you like/need
0
tracymsAuthor Commented:
Thanks all. I have DNS through ZoneEdit for the domain(s). What I did was add the IP address of the backup web server to each domain in ZoneEdit so that each domain now has 2 different IPs (main and backup). I brought down the main server to test it and it went to the backup so its working as I hoped. I am awarding points to leew since he pointed me in the right direction.
0
Lee W, MVPTechnology and Business Process AdvisorCommented:
It's important to understand the nature of DNS - some DNS servers cache the information your DNS server provides them.  This cacheing may result in them continuing to point to your down server regardless of what your DNS server says for several hours or even days.  There is nothing you can do about this caching on your end.  So while you might be ok, others may be cached and not able to access your site for a period of time.
0
tracymsAuthor Commented:
Thanks for the follow-up leew. I did a little more research too to discover that my solution is using round robin and I'm actually doing load balancing instead of failover which is what I really wanted. I've decided to use ZoneEdit's failover service which should do the trick. Thanks again -- :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.