From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 09:57:34 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6CF1106564A for ; Wed, 28 Dec 2011 09:57:34 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7B6CD8FC15 for ; Wed, 28 Dec 2011 09:57:34 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so16979807vbb.13 for ; Wed, 28 Dec 2011 01:57:33 -0800 (PST) Received: by 10.52.16.78 with SMTP id e14mr887024vdd.60.1325066253698; Wed, 28 Dec 2011 01:57:33 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id cn2sm7452045vdc.3.2011.12.28.01.57.32 (version=SSLv3 cipher=OTHER); Wed, 28 Dec 2011 01:57:33 -0800 (PST) Message-ID: <4EFAE80D.9040900@my.gd> Date: Wed, 28 Dec 2011 10:57:33 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20111228075422.GA18064@admin.sibptus.tomsk.ru> In-Reply-To: <20111228075422.GA18064@admin.sibptus.tomsk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: mutual forwarders in ISC BIND X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 09:57:34 -0000 On 12/28/11 8:54 AM, Victor Sudakov wrote: > Colleagues, > > This question is not directly related to FreeBSD, but perhaps some > network administrators reading this list know the answer. > > Can I setup several ISC BIND servers to be each other's mutual forwarders? > Will it work or create an endless loop of DNS queries? > > I have customers using several DNS servers as recursive resolvers. The > usage pattern is pretty much equal between all the servers. What I > want is create a cache common to all the recursive servers to reduce > traffic and response time (much like squid siblings work). > > Thank you for any input. > If your planned setup is: DNS A, forward to DNS B on query fail DNS B, forward to DNS A on query fail Then this will indeed create a loop in case a query cannot be answered by both servers. Also, you won't want to do that. If you're trying to build up a cache to improve performance and response time, here's your scenario: DNS C, forward to DNS A,B for all queries DNS D, forward to DNS B,A for all queries Your cache will start building up and only responses that are not cached will be taken from your NS A and B servers.