From owner-freebsd-stable@FreeBSD.ORG Tue Sep 19 22:05:03 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5566E16A407 for ; Tue, 19 Sep 2006 22:05:03 +0000 (UTC) (envelope-from fbsd@1command.com) Received: from mail.1command.com (mail.1command.com [216.177.243.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3AB043D67 for ; Tue, 19 Sep 2006 22:04:55 +0000 (GMT) (envelope-from fbsd@1command.com) Received: from mail.1command.com (localhost.1command.com [127.0.0.1]) by mail.1command.com (8.13.3/8.13.3) with ESMTP id k8JM4qML049070 for ; Tue, 19 Sep 2006 15:04:53 -0700 (PDT) (envelope-from fbsd@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id k8JM4qch049069 for freebsd-stable@freebsd.org; Tue, 19 Sep 2006 15:04:52 -0700 (PDT) (envelope-from fbsd@1command.com) Received: from ns1.1command.com (ns1.1command.com [216.177.243.34]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Tue, 19 Sep 2006 15:04:52 -0700 Message-ID: <20060919150452.svcbj7xmsk0o84cs@webmail.1command.com> X-Priority: 3 (Normal) Date: Tue, 19 Sep 2006 15:04:52 -0700 From: "Chris H." To: freebsd-stable@freebsd.org References: <450F8777.7080407@gmail.com> <20060919083955.GB87657@e-Gitt.NET> <45102E4E.80600@FreeBSD.org> <20060919141948.gxpxiuyyskc8w0k8@webmail.1command.com> In-Reply-To: <20060919141948.gxpxiuyyskc8w0k8@webmail.1command.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: H.R. Communications Internet Messaging System (HCIMS) 4.1 Professional (not for redistribution) / FreeBSD-5.5 Subject: Re: bind round robin X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 22:05:03 -0000 Greetings, ... Quoting "Chris H." : > Greetings all, > ... > Quoting Doug Barton : > >> Oliver Brandmueller wrote: >>> >>> DNS round robin is not about redundancy, the only thing you could have >>> that way is a kind of load balancing (not the most sophisticated way, >>> though). Whenever one of the servers fails, around half of the requests >>> still goes there and then times out/gets conn refused or whatever the >>> problem is. Prioritizing is not easily possible. Probably it helps if >>> you add one of the IPs more often to the set, but I never tried that and >>> did not read the docs on this topic, so before breaking your zone first >>> read the specs, if this works! >> >> Just replying to this bit first, in BIND it does not work to specify >> the same IP address multiple times for the same hostname. The server >> will collapse the duplicates into one unique entry when it reads the >> zone. I am not aware of any other authoritative name server for which >> this would work either. > > While this /might/ hold true in some/certain situations. I /can/ say > after 3.5 yrs. of doing exactly this, that it does not collapse the > namespace into a single IP<-->name. Here is the excerpt from the zone > file(s) running a recent BIND version: > > #################################################### > # hostA.domain.tld.zone > hostA IN A XXX.XXX.XXX.XA > IN HINFO IBM-PC/AT UNICS/UNIX > IN MX 10 mx > IN MX 60 mx2 > graphics IN A XXX.XXX.XXX.XA > nameA IN A XXX.XXX.XXX.XA > nameB IN A XXX.XXX.XXX.XA > ... > www IN A XXX.XXX.XXX.XA > nameC IN CNAME nameB > etc... > > # hostB.domain.tld.zone > hostB IN A XXX.XXX.XXX.XB > IN HINFO IBM-PC/AT UNICS/UNIX > IN MX 10 mx > IN MX 60 mx2 > nameD IN A XXX.XXX.XXX.XB > graphics IN A XXX.XXX.XXX.XB > hostE IN A XXX.XXX.XXX.XB > etc... > ##################################################### > Please note the RR (PTR) zone only lists RR's for > hostA and hostB. It is the responsibility of the hosts > own zones to delegate the hostnames for their own zones. > Both of these hosts are running Apache for the HTTPd > service, and both of them serve pages for graphics.domain.tld. > > Now, on to your initial question... > Speaking of Apache; Apache has provided a solution for > the /exact/ situation you are enquiring about since v.1.2. > You will find it in the documentation that comes with the > installation. I will endevour to find it's whereabouts in > the doc's and provide a link. As I host those doc's. It > involves DNS and either the use of Perl, or http(s)d.conf > trickery. This, of course, all assumes that you are working > with Apache. :) > > Best wishes, > Chris H. O.K. Here's the link(s) I promised: You will/should find these two links /extremely/ valuable: http://hosting.1command.com/manual/misc/rewriteguide.html These are the things dreams are made of. ;) the link I indicated you'd find as a good solution is here: http://hosting.1command.com/manual/misc/rewriteguide.html Just scroll down to the topic: *Load Balancing* Best wishes, Chris H. P.S. you will/should also spend some time on a DNS/BIND newsgroup. As the knowledge gained there is invaluable. I spend quite alot of time there answering questions, and it is probably a better place to ask questions of this nature. Because this list really isn't designed for this kind of topic. > >> >> FYI, >> >> Doug >> >> -- >> >> This .signature sanitized for your protection >> >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >> > > > > -- > panic: kernel trap (ignored) > > > > ----------------------------------------------------------------- > FreeBSD 5.4-RELEASE-p12 (SMP - 900x2) Tue Mar 7 19:37:23 PST 2006 > ///////////////////////////////////////////////////////////////// > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- panic: kernel trap (ignored) ----------------------------------------------------------------- FreeBSD 5.4-RELEASE-p12 (SMP - 900x2) Tue Mar 7 19:37:23 PST 2006 /////////////////////////////////////////////////////////////////