Solved

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

Posted on 2008-06-19
2
283 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
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 70

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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