From owner-freebsd-current Thu Feb 27 6:22:44 2003 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 29EF837B401 for ; Thu, 27 Feb 2003 06:22:43 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id CB98A43F75 for ; Thu, 27 Feb 2003 06:22:41 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 27 Feb 2003 14:22:41 +0000 (GMT) Date: Thu, 27 Feb 2003 14:22:40 +0000 From: David Malone To: YAMAMOTO Shigeru Cc: current@FreeBSD.ORG Subject: Re: small patch for controlling resolver information cache Message-ID: <20030227142240.GA68435@walton.maths.tcd.ie> References: <20030227.182531.108817955.shigeru@iij.ad.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030227.182531.108817955.shigeru@iij.ad.jp> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 27, 2003 at 06:25:31PM +0900, YAMAMOTO Shigeru wrote: > If seting 'RES_NOCACHE' to 'yes', any application reads /etc/resolv.conf at > any DNS quering. I wonder if it would be better to have a RES_CACHETIME, which you can set in seconds and if it is set then you reread if the last reread of resolv.conf was more than that number of seconds ago? You could set it to zero to get it to reread every time. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message