From owner-freebsd-questions@FreeBSD.ORG Thu Jun 12 01:57:31 2003 Return-Path: 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 A252737B401 for ; Thu, 12 Jun 2003 01:57:31 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C015B43F75 for ; Thu, 12 Jun 2003 01:57:30 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.20) id 19QNth-000KWc-9q for freebsd-questions@freebsd.org; Thu, 12 Jun 2003 09:57:29 +0100 Date: Thu, 12 Jun 2003 09:57:29 +0100 From: Jez Hancock To: FreeBSD questions List Message-ID: <20030612085729.GA78670@users.munk.nu> Mail-Followup-To: FreeBSD questions List References: <5.2.0.9.0.20030612150301.00a0b0e0@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.0.20030612150301.00a0b0e0@127.0.0.1> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Entry in /etc/hosts not used X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 08:57:31 -0000 On Thu, Jun 12, 2003 at 03:40:50PM +0700, Roger Merritt wrote: > Can anyone suggest what to try next? Oh -- it's essential I be able to > connect my browser to editor.imp.ac.th, because that's the only way to log > in to the CMS. Have you considered installing a local caching nameserver (I presume you're not running one already). I'm no DNS expert, but it seems as though the names are being cached locally somewhere - again I'm no expert, I'd like to here more on how freebsd caches names when no nameserver is running locally... If you could run your own caching nameserver locally (ie ONLY for queries on the loopback address), you could easily just flush the cache whenever you want to be sure you're getting 'fresh' names. djbdns is really nice (dnscache for caching) and a breeze to setup. These docs are useful: http://cr.yp.to/djbdns.html http://matt.simerson.net/computing/dns/djbdns-freebsd.shtml http://www.lifewithdjbdns.org/ - a lot of info in the above docs, try and read as much of the first link as you can and follow on to the second link for setting up dnscache as a local caching server Once you're done, you'd still use /etc/hosts to override any hosts you want, but use dnscache for everything else (with 'nameserver 127.0.0.1' in /etc/resolv.conf) and to 'flush' the cache just do 'svc -t /var/service/dnscache' (or wherever you link dnscache service dir to). Cheers, Jez