From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 08:45:42 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 8839216A4DD for ; Wed, 2 Aug 2006 08:45:42 +0000 (UTC) (envelope-from M.S.Powell@salford.ac.uk) Received: from rhea.salford.ac.uk (rhea.salford.ac.uk [146.87.255.99]) by mx1.FreeBSD.org (Postfix) with SMTP id BD73143D45 for ; Wed, 2 Aug 2006 08:45:41 +0000 (GMT) (envelope-from M.S.Powell@salford.ac.uk) Received: (qmail 46878 invoked by uid 98); 2 Aug 2006 08:45:40 -0000 Received: from 146.87.255.121 by rhea.salford.ac.uk (envelope-from , uid 401) with qmail-scanner-1.25 (clamdscan: 0.88/1630. uvscan: v4.4.00/v4819. spamassassin: 3.0.4. Clear:RC:1(146.87.255.121):. Processed in 0.801849 secs); 02 Aug 2006 08:45:40 -0000 Received: from rust.salford.ac.uk (HELO newplato.salford.ac.uk) (146.87.255.121) by rhea.salford.ac.uk (qpsmtpd/0.29-cvs-20040817) with SMTP; Wed, 02 Aug 2006 09:45:39 +0100 Received: (qmail 16574 invoked by uid 1002); 2 Aug 2006 08:45:37 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Aug 2006 08:45:37 -0000 Date: Wed, 2 Aug 2006 09:45:37 +0100 (BST) From: "Mark Powell" To: Bill Moran In-Reply-To: <20060801085450.56eadfe5.wmoran@collaborativefusion.com> Message-ID: <20060802094019.O16501@rust.salford.ac.uk> References: <20060801133245.B9668@rust.salford.ac.uk> <20060801085450.56eadfe5.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 08:45:42 -0000 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. > 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. > > -- Mark Powell - UNIX System Administrator - The University of Salford Information Services Division, Clifford Whitworth Building, Salford University, Manchester, M5 4WT, UK. Tel: +44 161 295 4837 Fax: +44 161 295 5888 www.pgp.com for PGP key