Solved

DNS CNAME records for DR purpose...

Posted on 2006-07-07
3
1,131 Views
Last Modified: 2013-12-23
I have an Application running on server1.domain.com. And I have a CNAME for my application as Myapps.domain.com to serverA.domain.com.


Users access the application by using Myapps.domain.com.

I am planning to put a DR for this website on Server2.Domain.com in different city.
Now I want to setup something like MX record priority like…if my Server1.domain.com fails then it should automatically go to my DR server Server2.Domain.com.

How to setup this…Should I put Two CNAME pointing to server1 & server2.

How it is going to work ?



0
Comment
Question by:moorthy_kulumani
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 125 total points
ID: 17057917
CNAME's are simple one-to-one mappings and not a prioritized mechanism like MX. MX works because the higher-level SMTP software knows how to check if each server is up and running. With CNAME's the resolver library only knows that the name resolved (i.e., the DNS server is up), not whether the actual application/server is up and running.

The way the type of thing you're trying to do is usually done is to have two A records with the same name but differnet IP addresses that point to the two different servers. Then, if one of the servers goes down you can pull its A record (of course you also need really short TTL's or other DNS servers/resolvers will have the bad record cached and not get the update).

You could also have your DNS server check whether each server is up or not on a regular basis (say every 30 seconds) and automagically reconfigure itself.

That's essentially how F5 BigIP and other similar products work (plus fancy GUIs to make it easier to manage, etc.).
0
 
LVL 3

Author Comment

by:moorthy_kulumani
ID: 17070524
Instead of having two A record can i have two CNAME point to Diffent A record with less TTL for the Production ?

And do we need to delete the Prodiction record...when the production server goes down ?

how it is ?
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 17072551
No. CNAME's are a one-to-one mapping between a name and another name. A records are one to many mappings between a name and one or more IP addresses.

Yes, you'd need to delete the production record when the production server goes down.
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question