Solved

DNS CNAME records for DR purpose...

Posted on 2006-07-07
3
1,117 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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sonicwall TZ 205- Dropping Incoming E-mail as IP Spoof 13 99
forward schedule of change 1 27
Booster, Repeater, or Wireless Access Point 9 46
Martian Packets Unix 5 33
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now