Solved

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

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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DNS forwarder or DNS forwarder records missing. 1 53
DNS issues after a power outage 3 87
Edge Server Subscription 6 56
Setting up two DCs 4 48
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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