Solved

how do i create a dns record for a website that is hosted on two servers

Posted on 2008-06-19
2
295 Views
Last Modified: 2010-04-07
i am running my own external server 2003 dns servers.  I have two webservers hosting the same website. I want to create dns records so traffic is always directed to webserver a.  if webserver a is unavailable then traffic will goto webserver b.  i kno how to do this with mx records, but i dont see an option for a records.  i know i can create multiple a records with the same name that point to different ip's,but that doesnt guarantee that traffic will always goto server a first.
0
Comment
Question by:colonialiu20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Expert Comment

by:WimDL
ID: 21829014
Disable round robin (and netmask ordering) in DNS. DNS will then always return the DNS records the way they appear in the DNS database. In normal circumstances, the first in the list will always be contacted by the client and the second only if the first one doesn't respond.
0
 
LVL 71

Accepted Solution

by:
Chris Dent earned 250 total points
ID: 21829287

If Round Robin is disabled DNS will then always return the first record.

The problem is, DNS couldn't care less if your web server was up or down, that's not it's job. So if it's down you will still get the first IP returned and your client will end up at the down server.

To implement this kind of failover in DNS you must manually change the record on the event of failure.

There is software available to do this kind of change over for you, they rely on low Time To Live values for the record (how long a client / DNS server will remember the response).

It's also possible to script the change (using WMI) if you have direct access to the servers (as 2003 servers). Want to look into that? I have a couple of samples somewhere.

Chris
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Most DNS problems are VERY easily troubleshot and identifiable if you can follow the steps a DNS query takes. I would like to share the step-by-step a DNS query takes from the origin to the destination. _____________________________________________…
This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

623 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