LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2008, 02:26 PM   #1
xp2004xyz
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
DNS question - site located on 2 servers.


I would like to have a copy of the web site located on a secondary server.
If the first server fails or is to slow the DNS would resolve domain to the second server.This would be similar to load balancing.
What would be the easiest way to do this ?? is ZoneEdit the answer ??
I've found a post http://www.webmasterworld.com/forum105/154.htm

I must add both servers not at the same location.

Last edited by xp2004xyz; 10-26-2008 at 02:49 PM.
 
Old 10-27-2008, 02:00 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
I think it is not easy and in my opinion if even possible should not be used.

The problems I can see are following:

1. DNS records are stored (at least should be stored) on 2 DNS servers: primary and secondary.
So for your purposes you should make changes on both ones each time you want to do "switch"

2. The resolving is done in first step from local host cache and next by using the cashing resolvers rather than by reading records from primary or secondary authoritative servers directly.
So after "switch" - until data in cache(s) are valid (typical expiration is 2-3 days) - a number of host will try to get the website from "old" server.

Of course, you can try to create DNS record with very short validity time but:
- some cashing servers ignore very short record expiration time
- assuming everything will go ok - you force incredible high traffic concerned with DNS resolving - therefore in my opinion this method should not be used

My advice is to use additional host for "switch" between web servers.
You can do it in two ways:

a. using http redirection

b. by traffic forwarding.

The first solution is in my opinion better one since makes less problems and bandwidth load.
It can be easily implemented for instance with php and give powerful possibilities: running script can redirect the client using any kind of criteria: source IP, browser type, current load, etc.

Using one of above method no DNS changes are required.


P.S. You can also try this solution

Last edited by dorian33; 10-27-2008 at 05:19 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS problems, reverse dns working localy but not on other servers. valls Linux - Newbie 1 06-16-2008 06:59 AM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
Recursive Servers basic question in DNS emailssent Linux - Networking 1 10-02-2004 10:01 AM
Question regarding DNS Servers? snakeo2 Linux - Networking 15 08-28-2004 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration