From owner-freebsd-current@FreeBSD.ORG Sat Apr 29 19:42:54 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 632D516A40A for ; Sat, 29 Apr 2006 19:42:54 +0000 (UTC) (envelope-from caelian@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A12F43D4C for ; Sat, 29 Apr 2006 19:42:48 +0000 (GMT) (envelope-from caelian@gmail.com) Received: by nz-out-0102.google.com with SMTP id i28so2157196nzi for ; Sat, 29 Apr 2006 12:42:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=E3WlwyO8gPLSc3EjPHb9Xg+q74ByfUZj7Gn5bui2mtnUoE+PbR0kV0WBHyoxUAlVqsLdi1Y5znUVVc7hVX3HeHxDYApxm02fRCZVRA3OdWG0U52/wU8vZQtG0q9cgX0cNXsun6PYUqYhYyrC0B7tp6RWj9CGunaHity7Eruake8= Received: by 10.36.222.70 with SMTP id u70mr2094295nzg; Sat, 29 Apr 2006 12:42:47 -0700 (PDT) Received: from synergy.odyssey.homeunix.org ( [68.190.230.198]) by mx.gmail.com with ESMTP id 19sm3839812nzp.2006.04.29.12.42.46; Sat, 29 Apr 2006 12:42:47 -0700 (PDT) From: Pascal Hofstee To: Hajimu UMEMOTO In-Reply-To: References: <200604281203.k3SC3da7070033@repoman.freebsd.org> <20060428141404.Q40418@fledge.watson.org> Content-Type: text/plain Date: Sat, 29 Apr 2006 12:42:44 -0700 Message-Id: <1146339764.1187.15.camel@synergy.odyssey.homeunix.org> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: 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: Sat, 29 Apr 2006 19:42:54 -0000 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. -- Pascal Hofstee