Solved

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

Posted on 2008-06-19
2
254 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
Comment Utility
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
Comment Utility

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

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

12 Experts available now in Live!

Get 1:1 Help Now