From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 12:12:43 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 7504616A4DA for ; Wed, 2 Aug 2006 12:12:43 +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 04B9643D45 for ; Wed, 2 Aug 2006 12:12:42 +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; Wed, 02 Aug 2006 08:12:42 -0400 id 00056429.44D096BA.00014D83 Received: from Internal Mail-Server (206.210.89.202) by mx01 (envelope-from wmoran@collaborativefusion.com) with AES256-SHA encrypted SMTP; 2 Aug 2006 08:09:04 -0400 Date: Wed, 2 Aug 2006 08:12:44 -0400 From: Bill Moran To: "Mark Powell" Message-Id: <20060802081244.32894939.wmoran@collaborativefusion.com> In-Reply-To: <20060802094019.O16501@rust.salford.ac.uk> References: <20060801133245.B9668@rust.salford.ac.uk> <20060801085450.56eadfe5.wmoran@collaborativefusion.com> <20060802094019.O16501@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: Wed, 02 Aug 2006 12:12:43 -0000 In response to "Mark Powell" : > On Tue, 1 Aug 2006, Bill Moran wrote: > > >> 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. > > I think it is rcng compliant. However, once in /etc/rc.d, how is the order > of execution determined? I expect I will need to get it to run about the > same time that named is usually started. Have a look at the man page for rcorder. IIRC, that covers it pretty well. > > 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. > > That sounds like a nightmare :( > Cheers. It was a thought. -- Bill Moran Collaborative Fusion Inc.