From owner-freebsd-questions@FreeBSD.ORG Tue Aug 1 12:54:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 C5D1B16A4DD for ; Tue, 1 Aug 2006 12:54:50 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BD5F43D46 for ; Tue, 1 Aug 2006 12:54:50 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 01 Aug 2006 08:54:49 -0400 id 00056426.44CF4F19.00010274 Received: from Internal Mail-Server (206.210.89.202) by mx01 (envelope-from wmoran@collaborativefusion.com) with AES256-SHA encrypted SMTP; 1 Aug 2006 08:51:20 -0400 Date: Tue, 1 Aug 2006 08:54:50 -0400 From: Bill Moran To: "Mark Powell" Message-Id: <20060801085450.56eadfe5.wmoran@collaborativefusion.com> In-Reply-To: <20060801133245.B9668@rust.salford.ac.uk> References: <20060801133245.B9668@rust.salford.ac.uk> Organization: Collaborative Fusion X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.20; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Using dnscache locally with FBSD 6.x 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: Tue, 01 Aug 2006 12:54:50 -0000 In response to "Mark Powell" : > Hi, > I want to put a local DJB dnscache on each host. This is primarily to > improve reliabilty during network glitches. They will have cached most of > our local addresses and will not hang if one of their dns servers > disappears. > However, I use svscan to start up dnscache, and that starts very late in > the boot. That means I can't just have the single "nameserver 127.0.0.1" > line in resolv.conf, as every lookup would timeout until dnscache started. > That means I need to replace resolv.conf early in the boot with the > addresses of remote dns caches: Have you investigated the possibility of moving svscan's startup earlier in the boot sequence? I don't know whether the svscan startup script is rcng compliant yet, but if it is, you could move it to /etc/rc.d and move it _way_ up in the startup sequence. Another option is to put addresses that need to resolve before svscan has started into /etc/hosts so that they don't need DNS. This could be a maintenance nightmare, though, if there are many addresses. -- Bill Moran Collaborative Fusion Inc. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. ****************************************************************