Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DNS CNAME records for DR purpose...

Posted on 2006-07-07
3
Medium Priority
?
1,164 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

916 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