Solved

DNS CNAME records for DR purpose...

Posted on 2006-07-07
3
1,110 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Join & Write a Comment

The DSL Parameters part of this article is valid and can be considered with any brand of internet router and modem (Dlink, 3com, Alcatel, Usrobotics, Parks), by accessing the configuration interface available by the manufacturer eg: http://10.1.1.1 …
I was recently sitting at a desk at work with one of my colleagues and needed some information on my home computer. He watched as I turned on my home computer, established a remote session into it, got the information I needed and then shut it down …
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.

762 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

7 Experts available now in Live!

Get 1:1 Help Now