From owner-freebsd-current@FreeBSD.ORG Mon May 1 10:33:00 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3B7416A400; Mon, 1 May 2006 10:33:00 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmmtao06.cox.net (eastrmmtao06.cox.net [68.230.240.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19AA243D48; Mon, 1 May 2006 10:32:59 +0000 (GMT) (envelope-from conrads@cox.net) Received: from serene.no-ip.org ([72.200.25.154]) by eastrmmtao06.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060501103258.WKUP16402.eastrmmtao06.cox.net@serene.no-ip.org>; Mon, 1 May 2006 06:32:58 -0400 Received: from localhost (localhost [127.0.0.1]) by serene.no-ip.org (8.13.6/8.13.6) with ESMTP id k41AWwJN016887; Mon, 1 May 2006 05:32:58 -0500 (CDT) (envelope-from conrads@cox.net) Date: Mon, 1 May 2006 05:32:52 -0500 From: "Conrad J. Sabatier" To: Pascal Hofstee Message-ID: <20060501053252.1f240f7e@localhost> In-Reply-To: <1146339764.1187.15.camel@synergy.odyssey.homeunix.org> References: <200604281203.k3SC3da7070033@repoman.freebsd.org> <20060428141404.Q40418@fledge.watson.org> <1146339764.1187.15.camel@synergy.odyssey.homeunix.org> Organization: A Rag-Tag Band of Drug-Crazed Hippies X-Mailer: Sylpheed-Claws 2.1.1 (GTK+ 2.8.17; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Hajimu UMEMOTO , current@freebsd.org Subject: Re: name-service caching X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 May 2006 10:33:00 -0000 On Sat, 29 Apr 2006 12:42:44 -0700, Pascal Hofstee wrote: > On Sat, 2006-04-29 at 02:58 +0900, Hajimu UMEMOTO wrote: > > Okay, you can set it up quite easy: > > > > 1) Make sure you have /etc/cached.conf installed. > > 2) Put cached_enable="YES" into your /etc/rc.conf. > > 3) Start cached(8) by `/etc/rc.d/cached start'. > > 4) Put `cache' keyword to the database entries which you want to > > cache the result in /etc/nsswitch.conf. For example: > > > > hosts: cache files dns > > > > Please refer cached(8) and cached.conf(5) manpages for detail. > > Ok .. i am wondering if it's just me doing something stupid or if > things really are broken in some way. I followed the instructions as > provided above, using the default cached.conf. > > With a standard nsswitch.conf (without any cache lines) everything > works as expected. The second i modify the hosts: entry > in /etc/nsswitch.conf as suggested above, a lot of things stop > working. > > - cvs [update aborted]: received broken pipe signal > - portsnap can't fetch its tag information and aborts because of it > - the ports system can't seem to fetch any distfiles > > Those are a few of the immediate issues i encountered. > The second i remove the cache definition from the hosts: entry, normal > system operation is restored again. > > This is experienced on FreeBSD/amd64 7.0-CURRENT updated about an hour > ago since the time of writing. Any suggestions would be highly > appreciated. No, it's not just you. :-) I'm seeing the same thing here, also on an amd64 box. -- Conrad J. Sabatier -- "In Unix veritas"