From owner-freebsd-questions Thu Mar 6 14:52:32 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C05A37B401 for ; Thu, 6 Mar 2003 14:52:30 -0800 (PST) Received: from gate.raffles-it.com (raffles.demon.co.uk [62.49.18.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3941643F85 for ; Thu, 6 Mar 2003 14:52:28 -0800 (PST) (envelope-from dpd@raffles-it.com) Received: from arrow.lan.raffles-it.com (localhost [127.0.0.1]) by gate.raffles-it.com (8.12.7/8.12.7) with ESMTP id h26Mo9Ls062569; Thu, 6 Mar 2003 22:50:09 GMT (envelope-from dpd@lan.raffles-it.com) Received: (from dpd@localhost) by arrow.lan.raffles-it.com (8.12.7/8.12.7/Submit) id h26Mo8T8062568; Thu, 6 Mar 2003 22:50:09 GMT Date: Thu, 6 Mar 2003 22:50:04 +0000 From: David Dooley To: "Aaron Burke" Cc: freebsd-questions-local@be-well.no-ip.com, freebsd-questions@FreeBSD.ORG Subject: Re: Mirroring/load-balance two servers Message-Id: <20030306225004.7b954fdc.dpd@raffles-it.com> In-Reply-To: References: <44k7fcz32q.fsf@be-well.ilk.org> X-Mailer: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="LmRy_et_q=.N_4rD" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --LmRy_et_q=.N_4rD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit The only problem with using DNS round robin like this, is that, in this scenario when 1 server is down, on average 1 in 3 requests to the web server will fail. But as previous posters have commented DNS should respond with the same 3 addresses, but it will rotate the order each time, in the version ( named 8.3.4-REL Sun Feb 9 01:23:18 GMT 2003 on 4.7-STABLE of the same date ) I am using it appears to return the addresses in some sort of random order at least it does for me in my test. On Thu, 6 Mar 2003 12:09:06 -0800 "Aaron Burke" wrote: > > "Aaron Burke" writes: > > > > > To my knowlege, yes. Lets say you had a server called www. > > > You would just give it two addresses in your domain configuration > > > files. > > > > > > www IN CNAME 12.34.56.78 > > > www IN CNAME 9.10.11.12 > > > www IN CNAME 65.4.3.21 > > > > That should be A records, not CNAMEs. > Err, you are correct, my mistake. > > > > > > The DNS standard will give out a different address for every > > > query. To get the address 12.34.56.78 twice, you would have > > > to make 4 unique queries for the server records. > > > > Where does the standard say that? Most servers will return the > > records in the same order each time by default, and my reading of the > > standards is that this is perfectly acceptable behaviour. > > I have personally not read the standard. It is just information > thats been given to me by some knowlegable friends. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- David Dooley dpd@raffles-it.com --LmRy_et_q=.N_4rD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Z9CgiTCzTVFwd6wRAqcgAKDoFTVBFAhadANLzlKfd+XGfLV80gCggTwz P5Nf3fU6FpvqWa7UN1OTW2s= =L76b -----END PGP SIGNATURE----- --LmRy_et_q=.N_4rD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message